Click or drag to resize

ExcelColorsPaletteGetColorIndex Method

Gets the index in palette of the specified color. If the exact color is not found in the palette the method will return the index of the color in palette which is the closest to the specified color.

Namespace:  ExpertXls.ExcelLib
Assembly:  expertxls (in expertxls.dll) Version: 7.0.0
Syntax
public int GetColorIndex(
	Color color
)

Parameters

color
Type: System.DrawingColor
The color to search in palette

Return Value

Type: Int32
The index of the specified color in palette
See Also