Winnovative Excel Library

ExcelColorsPaletteAddColor Method

Winnovative Excel Library Documentation
Adds the specified color to palette and returns the index in palette where this color was added. If there are no more available indexes 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 AddColor(
	Color color
)

Parameters

color
Type: System.DrawingColor
The color to be added to the palette.

Return Value

Type: Int32
The index in palette where this color was added.
See Also

Reference