IsKnownColor: Boolean;
The IsKnownColor property returns True if the color is a standard one.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
s: String;
Begin
If Panel1.Color.IsKnownColor Then
s:="Yes";
Else
s:="No";
End If;
End Sub Button1OnClick;
After executing the example on clicking the button the "s" variable contains Yes is the color of the panel named Panel1 is a standard color.
See also: