Spread WPF 18
GrapeCity.Spreadsheet Namespace / Color Structure / ToKnownColor Method


In This Topic
    ToKnownColor Method
    In This Topic
    Gets the GrapeCity.Core.KnownColor value of this Color structure.
    Syntax
    'Declaration
     
    Public Function ToKnownColor() As KnownColor
    'Usage
     
    Dim instance As Color
    Dim value As KnownColor
     
    value = instance.ToKnownColor()
    public KnownColor ToKnownColor()

    Return Value

    An element of the GrapeCity.Core.KnownColor enumeration, if the Color is created from a predefined color by using the FromKnownColor method; otherwise, 0.
    Remarks
    Invoke this function only if the Type is ColorType.ARGB and IsKnownColor is true.

    The Tint value isn't applied to the result.

    See Also