[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Color.FromIndexedColor

FromIndexedColor Method

FromIndexedColor(int, double)

Creates a Color structure from the specified indexed color.

Declaration
public static Color FromIndexedColor(int index, double tint = 0)
Public Shared Function FromIndexedColor(index As Integer, Optional tint As Double = 0) As Color
Parameters
Type Name Description
int index

An integer value indicates the indexed color. The value has base 1.

double tint

The mixture of a color with white, which increases lightness, and a shade is the mixture of a color with black, which reduces lightness. Valid values are -1 through 1.

Returns
Type Description
Color

The Color value that this method creates.