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.ExcelLibAssembly: expertxls (in expertxls.dll) Version: 9.0.0
Syntaxpublic int GetColorIndex(
Color color
)
Public Function GetColorIndex (
color As Color
) As Integer
Parameters
- color Color
- The color to search in palette
Return Value
Int32The index of the specified color in palette
See Also