Spread Windows Forms 15.0
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 -1 through 1.


In This Topic
    FromKnownColor Method
    In This Topic
    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 -1 through 1.

    Return Value

    The Color value that this method creates.
    See Also