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.ExcelLibAssembly: expertxls (in expertxls.dll) Version: 9.0.0
Syntaxpublic int AddColor(
Color color
)
Public Function AddColor (
color As Color
) As Integer
Parameters
- color Color
- The color to be added to the palette.
Return Value
Int32The index in palette where this color was added.
See Also