Name: String;
The Name property returns the name of the color.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
S: String;
Begin
s:=Panel1.Color.Name;
End Sub Button1OnClick;
After executing the example on clicking the button the "s" variable contains the color names of the panel named Panel1.
See also: