Sets the palette color at the specified index. Please note that the default Ansi and Dos palettes are read-only - create a new palette to set colors.

Namespace:  Rebex.TerminalEmulation
Assembly:  Rebex.Terminal (in Rebex.Terminal.dll)

Syntax

Visual Basic
Public Sub SetColor ( _
	index As Integer, _
	color As Color _
)
C#
public void SetColor(
	int index,
	Color color
)

Parameters

index
Type: System..::..Int32
Color index.
color
Type: System.Drawing..::..Color
Palette color.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also