Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Color Structure / FromThemeColor Method
An element of the GrapeCity.Core.ThemeColors 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
    FromThemeColor Method
    In This Topic
    Creates a Color structure from the specified predefined color.
    Syntax
    'Declaration
     
    
    Public Shared Function FromThemeColor( _
       ByVal index As ThemeColors, _
       Optional ByVal tint As Double _
    ) As Color
    'Usage
     
    
    Dim index As ThemeColors
    Dim tint As Double
    Dim value As Color
     
    value = Color.FromThemeColor(index, tint)
    public static Color FromThemeColor( 
       ThemeColors index,
       double tint
    )

    Parameters

    index
    An element of the GrapeCity.Core.ThemeColors 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