Sets the palette index to be used by the specified named scheme color.
This is only used for Custom (see ColorScheme property).
Namespace:
Rebex.TerminalEmulation
Assembly:
Rebex.Terminal (in Rebex.Terminal.dll)
Syntax
Visual Basic |
---|
Public Sub SetColorIndex ( _ color As SchemeColorName, _ paletteIndex As Integer _ ) |
C# |
---|
public void SetColorIndex( SchemeColorName color, int paletteIndex ) |
Parameters
- color
- Type: Rebex.TerminalEmulation..::..SchemeColorName
Named scheme color.
- paletteIndex
- Type: System..::..Int32
Palette index (0..255).
Remarks
The default palette contains the following colors:
0 = Black, 1 = Red, 2 = Green, 3 = Yellow, 4 = Blue, 5 = Magenta, 6 = Cyan, 7 = LightGray,
8 = DarkGray, 9 = LightRed, 10 = LightGreen, 11 = LightYellow, 12 = LightBlue, 13 = LightMagenta, 14 = LightCyan, 15 = White,
16 and higher = Xterm colors.
When using
object, call
method to apply the color changes immediately.
When using
Copy Code | |
---|---|
TerminalControl |
Copy Code | |
---|---|
System.Windows.Forms.Control.Refresh |