C# Class PoshCode.Controls.ConsoleBrushes

Show file Open project: Jaykul/PoshConsole Class Usage Examples

Public Properties

Property Type Description
Black System.Windows.Media.Brush
Blue System.Windows.Media.Brush
Cyan System.Windows.Media.Brush
DarkBlue System.Windows.Media.Brush
DarkCyan System.Windows.Media.Brush
DarkGray System.Windows.Media.Brush
DarkGreen System.Windows.Media.Brush
DarkMagenta System.Windows.Media.Brush
DarkRed System.Windows.Media.Brush
DarkYellow System.Windows.Media.Brush
DebugBackground System.Windows.Media.Brush
DebugForeground System.Windows.Media.Brush
DefaultBackground System.Windows.Media.Brush
DefaultForeground System.Windows.Media.Brush
ErrorBackground System.Windows.Media.Brush
ErrorForeground System.Windows.Media.Brush
Gray System.Windows.Media.Brush
Green System.Windows.Media.Brush
Magenta System.Windows.Media.Brush
NativeErrorBackground System.Windows.Media.Brush
NativeErrorForeground System.Windows.Media.Brush
NativeOutputBackground System.Windows.Media.Brush
NativeOutputForeground System.Windows.Media.Brush
Red System.Windows.Media.Brush
Transparent System.Windows.Media.Brush
VerboseBackground System.Windows.Media.Brush
VerboseForeground System.Windows.Media.Brush
WarningBackground System.Windows.Media.Brush
WarningForeground System.Windows.Media.Brush
White System.Windows.Media.Brush
Yellow System.Windows.Media.Brush

Public Methods

Method Description
BrushFromConsoleColor ( ConsoleColor color ) : System.Windows.Media.Brush

Get the Brush for a specified ConsoleColor

ConsoleColorFromBrush ( System.Windows.Media.Brush color ) : ConsoleColor

Get a System.ConsoleColor from one of our Brush values.

GetBackgroundAsConsoleColor ( this character ) : ConsoleColor
GetForegroundAsConsoleColor ( this character ) : ConsoleColor
Refresh ( ) : void

Private Methods

Method Description
ConsoleBrushes ( ) : System

Method Details

BrushFromConsoleColor() public static method

Get the Brush for a specified ConsoleColor
public static BrushFromConsoleColor ( ConsoleColor color ) : System.Windows.Media.Brush
color ConsoleColor The to get a brush for
return System.Windows.Media.Brush

ConsoleColorFromBrush() public static method

Get a System.ConsoleColor from one of our Brush values.
public static ConsoleColorFromBrush ( System.Windows.Media.Brush color ) : ConsoleColor
color System.Windows.Media.Brush The you want to know the color of
return ConsoleColor

GetBackgroundAsConsoleColor() public static method

public static GetBackgroundAsConsoleColor ( this character ) : ConsoleColor
character this
return ConsoleColor

GetForegroundAsConsoleColor() public static method

public static GetForegroundAsConsoleColor ( this character ) : ConsoleColor
character this
return ConsoleColor

Refresh() public static method

public static Refresh ( ) : void
return void

Property Details

Black public static property

public static Brush,System.Windows.Media Black
return System.Windows.Media.Brush

Blue public static property

public static Brush,System.Windows.Media Blue
return System.Windows.Media.Brush

Cyan public static property

public static Brush,System.Windows.Media Cyan
return System.Windows.Media.Brush

DarkBlue public static property

public static Brush,System.Windows.Media DarkBlue
return System.Windows.Media.Brush

DarkCyan public static property

public static Brush,System.Windows.Media DarkCyan
return System.Windows.Media.Brush

DarkGray public static property

public static Brush,System.Windows.Media DarkGray
return System.Windows.Media.Brush

DarkGreen public static property

public static Brush,System.Windows.Media DarkGreen
return System.Windows.Media.Brush

DarkMagenta public static property

public static Brush,System.Windows.Media DarkMagenta
return System.Windows.Media.Brush

DarkRed public static property

public static Brush,System.Windows.Media DarkRed
return System.Windows.Media.Brush

DarkYellow public static property

public static Brush,System.Windows.Media DarkYellow
return System.Windows.Media.Brush

DebugBackground public static property

public static Brush,System.Windows.Media DebugBackground
return System.Windows.Media.Brush

DebugForeground public static property

public static Brush,System.Windows.Media DebugForeground
return System.Windows.Media.Brush

DefaultBackground public static property

public static Brush,System.Windows.Media DefaultBackground
return System.Windows.Media.Brush

DefaultForeground public static property

public static Brush,System.Windows.Media DefaultForeground
return System.Windows.Media.Brush

ErrorBackground public static property

public static Brush,System.Windows.Media ErrorBackground
return System.Windows.Media.Brush

ErrorForeground public static property

public static Brush,System.Windows.Media ErrorForeground
return System.Windows.Media.Brush

Gray public static property

public static Brush,System.Windows.Media Gray
return System.Windows.Media.Brush

Green public static property

public static Brush,System.Windows.Media Green
return System.Windows.Media.Brush

Magenta public static property

public static Brush,System.Windows.Media Magenta
return System.Windows.Media.Brush

NativeErrorBackground public static property

public static Brush,System.Windows.Media NativeErrorBackground
return System.Windows.Media.Brush

NativeErrorForeground public static property

public static Brush,System.Windows.Media NativeErrorForeground
return System.Windows.Media.Brush

NativeOutputBackground public static property

public static Brush,System.Windows.Media NativeOutputBackground
return System.Windows.Media.Brush

NativeOutputForeground public static property

public static Brush,System.Windows.Media NativeOutputForeground
return System.Windows.Media.Brush

Red public static property

public static Brush,System.Windows.Media Red
return System.Windows.Media.Brush

Transparent public static property

public static Brush,System.Windows.Media Transparent
return System.Windows.Media.Brush

VerboseBackground public static property

public static Brush,System.Windows.Media VerboseBackground
return System.Windows.Media.Brush

VerboseForeground public static property

public static Brush,System.Windows.Media VerboseForeground
return System.Windows.Media.Brush

WarningBackground public static property

public static Brush,System.Windows.Media WarningBackground
return System.Windows.Media.Brush

WarningForeground public static property

public static Brush,System.Windows.Media WarningForeground
return System.Windows.Media.Brush

White public static property

public static Brush,System.Windows.Media White
return System.Windows.Media.Brush

Yellow public static property

public static Brush,System.Windows.Media Yellow
return System.Windows.Media.Brush