[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Color.ToKnownColor

ToKnownColor Method

ToKnownColor()

Gets the KnownColor value of this Color structure.

Declaration
public KnownColor ToKnownColor()
Public Function ToKnownColor() As KnownColor
Returns
Type Description
KnownColor

An element of the 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 ARGB and IsKnownColor() is true.

The Tint value isn't applied to the result.