C# Class LitDev.ScreenColors

Show file Open project: litdev1/LitDev

Public Methods

Method Description
SetColor ( int index, Color colour ) : int
SetColours ( int fgIndex, int bgIndex ) : void

Private Methods

Method Description
GetConsoleScreenBufferInfoEx ( IntPtr hConsoleOutput, CONSOLE_SCREEN_BUFFER_INFO_EX &csbe ) : bool
GetStdHandle ( int nStdHandle ) : IntPtr
SetConsoleScreenBufferInfoEx ( IntPtr hConsoleOutput, CONSOLE_SCREEN_BUFFER_INFO_EX &csbe ) : bool
SetConsoleTextAttribute ( IntPtr hConsoleOutput, ushort wAttributes ) : bool

Method Details

SetColor() public static method

public static SetColor ( int index, Color colour ) : int
index int
colour Color
return int

SetColours() public static method

public static SetColours ( int fgIndex, int bgIndex ) : void
fgIndex int
bgIndex int
return void