C# Class WebApplications.Utilities.ConsoleHelper

Afficher le fichier Open project: webappsuk/CoreLibraries

Méthodes publiques

Свойство Type Description
IsConsole bool

Méthodes publiques

Méthode Description
Maximise ( ) : void

Maximises the console window.

ToColor ( ConsoleColor color ) : Color

Get's the Color of a ConsoleColor.

ToConsoleColor ( Color color ) : ConsoleColor

Converts a Color to the nearest ConsoleColor.

Private Methods

Méthode Description
AttachConsole ( uint dwProcessId ) : bool
ConsoleHelper ( ) : System

Initializes static members of the ConsoleHelper class.

Distance ( Color a, Color b ) : double
GetConsoleScreenBufferInfoEx ( IntPtr hConsoleOutput, ConsoleScreenBufferInfoEx &csbe ) : bool
GetStdHandle ( int stdHandle ) : IntPtr
ReadPassword ( char mask = '*' ) : string
ShowWindow ( IntPtr hWnd, int cmdShow ) : bool

Method Details

Maximise() public static méthode

Maximises the console window.
public static Maximise ( ) : void
Résultat void

ToColor() public static méthode

Get's the Color of a ConsoleColor.
public static ToColor ( ConsoleColor color ) : Color
color ConsoleColor The color.
Résultat Color

ToConsoleColor() public static méthode

Converts a Color to the nearest ConsoleColor.
public static ToConsoleColor ( Color color ) : ConsoleColor
color Color The color.
Résultat ConsoleColor

Property Details

IsConsole public_oe static_oe property

Whether the current application is running in a console.
public static bool IsConsole
Résultat bool