Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Color Structure / FromIndexedColor Method
An integer value indicates the indexed color. The value has base 1.
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.


In This Topic
FromIndexedColor Method
In This Topic
Creates a Color structure from the specified indexed color.
Syntax
'Declaration
 
Public Shared Function FromIndexedColor( _
   ByVal index As Integer, _
   Optional ByVal tint As Double _
) As Color
 
'Usage
 
Dim index As Integer
Dim tint As Double
Dim value As Color
 
value = Color.FromIndexedColor(index, tint)

Parameters

index
An integer value indicates the indexed color. The value has base 1.
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.

Return Value

The Color value that this method creates.
See Also