ExpertXls Excel Library for .NET
AddColor Method (color)
Namespaces ► ExpertXls.ExcelLib ► ExcelColorsPalette ► AddColor(Color)
ExpertXls Excel Library for .NET
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.
Declaration Syntax

C# | Visual Basic | Visual C++

    public int AddColor(
    	Color color
    )

    Public Function AddColor ( _
    	color As Color _
    ) As Integer

    public:
    int AddColor(
    	Color color
    )

Parameters

color (Color)
  The color to be added to the palette.

Return Value
The index in palette where this color was added.

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)