Spread Windows Forms 12.0 Product Documentation
FromKnownColor Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet Namespace > Color Structure : FromKnownColor Method
An element of the GrapeCity.Core.KnownColor enumeration.
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 predefined color.
Syntax
'Declaration
 
Public Shared Function FromKnownColor( _
   ByVal knownColor As KnownColor, _
   Optional ByVal tint As Double _
) As Color
'Usage
 
Dim knownColor As KnownColor
Dim tint As Double
Dim value As Color
 
value = Color.FromKnownColor(knownColor, tint)
public static Color FromKnownColor( 
   KnownColor knownColor,
   double tint
)

Parameters

knownColor
An element of the GrapeCity.Core.KnownColor enumeration.
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