Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.Color

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Color: TColor read FColor write SetColor stored IsColorStored default clWindow;

C++

__property System::Uitypes::TColor Color = {read=FColor, write=SetColor, stored=IsColorStored, default=-16777211};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

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

Personal tools
In Other Languages
Previous Versions
Assistance