Vcl.Forms.TForm.Color

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Color: TColor read FColor write SetColor stored IsColorStored;

C++

__property Color;

Properties

Type Visibility Source Unit Parent
property published
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TForm

Description


Specifies the background color of the control.

Vcl.Forms.TForm.Color inherits from Vcl.Controls.TControl.Color. All content below this line refers to Vcl.Controls.TControl.Color.

Specifies the background color of the control.

Use Color to read or change the background color of the control.

If a control's Vcl.Controls.TControl.ParentColor property is True, then changing the Color property of the control's parent automatically changes the Color property of the control. When the value of the Color property is changed, the control's ParentColor property is automatically set to False.

The Color of a TLabel is always the color of the background unless you set TLabel.Transparent to False.

See Also

Code Examples