Spread Windows Forms 12.0 Product Documentation
ToKnownColor Method


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet Namespace > Color Structure : ToKnownColor Method
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

Reference

Color Structure
Color Members