C# 클래스 Pastel.ConsoleExtensions

Controls colored console output by .
파일 보기 프로젝트 열기: Invenietis/CK-Monitoring

공개 메소드들

메소드 설명
Disable ( ) : void

Disables any future console color output produced by Pastel.

Enable ( ) : void

Enables any future console color output produced by Pastel.

FromColor ( ConsoleColor c ) : Color

Convert a ConsoleColor to a Color.

Pastel ( string input, Color color ) : string

Returns a string wrapped in an ANSI foreground color code using the specified color.

Pastel ( string input, ConsoleColor color ) : string

Returns a string wrapped in an ANSI foreground color code using the specified color.

Pastel ( string input, string hexColor ) : string

Returns a string wrapped in an ANSI foreground color code using the specified color.

PastelBg ( string input, Color color ) : string

Returns a string wrapped in an ANSI background color code using the specified color.

PastelBg ( string input, ConsoleColor color ) : string

Returns a string wrapped in an ANSI background color code using the specified color.

PastelBg ( string input, string hexColor ) : string

Returns a string wrapped in an ANSI background color code using the specified color.

비공개 메소드들

메소드 설명
CloseNestedPastelStrings ( string input, Color color, ColorPlane colorPlane ) : string
ConsoleExtensions ( ) : System
GetConsoleMode ( IntPtr hConsoleHandle, uint &lpMode ) : bool
GetStdHandle ( int nStdHandle ) : IntPtr
SetConsoleMode ( IntPtr hConsoleHandle, uint dwMode ) : bool

메소드 상세

Disable() 공개 정적인 메소드

Disables any future console color output produced by Pastel.
public static Disable ( ) : void
리턴 void

Enable() 공개 정적인 메소드

Enables any future console color output produced by Pastel.
public static Enable ( ) : void
리턴 void

FromColor() 공개 정적인 메소드

Convert a ConsoleColor to a Color.
public static FromColor ( ConsoleColor c ) : Color
c ConsoleColor
리턴 Color

Pastel() 공개 정적인 메소드

Returns a string wrapped in an ANSI foreground color code using the specified color.
public static Pastel ( string input, Color color ) : string
input string The string to color.
color Color The color to use on the specified string.
리턴 string

Pastel() 공개 정적인 메소드

Returns a string wrapped in an ANSI foreground color code using the specified color.
public static Pastel ( string input, ConsoleColor color ) : string
input string The string to color.
color ConsoleColor The color to use on the specified string.
리턴 string

Pastel() 공개 정적인 메소드

Returns a string wrapped in an ANSI foreground color code using the specified color.
public static Pastel ( string input, string hexColor ) : string
input string The string to color.
hexColor string The color to use on the specified string.Supported format: [#]RRGGBB.
리턴 string

PastelBg() 공개 정적인 메소드

Returns a string wrapped in an ANSI background color code using the specified color.
public static PastelBg ( string input, Color color ) : string
input string The string to color.
color Color The color to use on the specified string.
리턴 string

PastelBg() 공개 정적인 메소드

Returns a string wrapped in an ANSI background color code using the specified color.
public static PastelBg ( string input, ConsoleColor color ) : string
input string The string to color.
color ConsoleColor The color to use on the specified string.
리턴 string

PastelBg() 공개 정적인 메소드

Returns a string wrapped in an ANSI background color code using the specified color.
public static PastelBg ( string input, string hexColor ) : string
input string The string to color.
hexColor string The color to use on the specified string.Supported format: [#]RRGGBB.
리턴 string