[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Color.FromKnownColor

FromKnownColor Method

FromKnownColor(KnownColor, double)

Creates a Color structure from the specified predefined color.

Declaration
public static Color FromKnownColor(KnownColor knownColor, double tint = 0)
Public Shared Function FromKnownColor(knownColor As KnownColor, Optional tint As Double = 0) As Color
Parameters
Type Name Description
KnownColor knownColor

An element of the KnownColor enumeration.

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.