Click or drag to resize

ExcelColorsPaletteAddColor Method

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:  ExpertXls.ExcelLib
Assembly:  expertxls (in expertxls.dll) Version: 7.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