Gets the CNClrLib.Control.EnumTypes.TKnownColor value of this Color class.
public function ToKnownColor: TKnownColor;
An element of the CNClrLib.Control.EnumTypes.TKnownColor enumeration.
A predefined color is also called a known color and is represented by an element of the CNClrLib.Control.EnumTypes.TKnownColor enumeration. When the ToKnownColor method is applied to a Color that is created by using the Create(Integer), ToKnownColor returns 0, even if the ARGB value matches the ARGB value of a predefined color. ToKnownColor also returns 0 when it is applied to a Color class that is created by using the Create(string) with a string name that is not valid.