ColorPalette.GetColor

ColorPalette.GetColor method

Gets the palette color by index.

public Color GetColor(int index)
ParameterTypeDescription
indexInt32The palette color index.

Return Value

The color palette entry specified by the index.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionif color palette index specified is out of the palette entries range.

See Also