Spread Windows Forms 12.0 Product Documentation
FromIndexedColor Method


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 0 through 1.
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)
public static Color FromIndexedColor( 
   int index,
   double 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 0 through 1.

Return Value

The Color value that this method creates.
See Also

Reference

Color Structure
Color Members