Winnovative Excel Library

ExcelColorsPaletteGetColorIndex Method

Winnovative Excel Library Documentation
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:  Winnovative.ExcelLib
Assembly:  wnvxls (in wnvxls.dll) Version: 10.0.0.0 (10.0.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

Reference