C# Class PoshCode.Controls.ConsoleBrushes

Mostra 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_oe static_oe property

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

Blue public_oe static_oe property

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

Cyan public_oe static_oe property

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

DarkBlue public_oe static_oe property

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

DarkCyan public_oe static_oe property

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

DarkGray public_oe static_oe property

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

DarkGreen public_oe static_oe property

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

DarkMagenta public_oe static_oe property

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

DarkRed public_oe static_oe property

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

DarkYellow public_oe static_oe property

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

DebugBackground public_oe static_oe property

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

DebugForeground public_oe static_oe property

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

DefaultBackground public_oe static_oe property

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

DefaultForeground public_oe static_oe property

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

ErrorBackground public_oe static_oe property

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

ErrorForeground public_oe static_oe property

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

Gray public_oe static_oe property

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

Green public_oe static_oe property

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

Magenta public_oe static_oe property

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

NativeErrorBackground public_oe static_oe property

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

NativeErrorForeground public_oe static_oe property

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

NativeOutputBackground public_oe static_oe property

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

NativeOutputForeground public_oe static_oe property

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

Red public_oe static_oe property

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

Transparent public_oe static_oe property

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

VerboseBackground public_oe static_oe property

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

VerboseForeground public_oe static_oe property

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

WarningBackground public_oe static_oe property

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

WarningForeground public_oe static_oe property

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

White public_oe static_oe property

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

Yellow public_oe static_oe property

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