Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.Font

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Font: TFont read FFont write SetFont stored IsFontStored;

C++

__property Vcl::Graphics::TFont* Font = {read=FFont, write=SetFont, stored=IsFontStored};

Properties

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

Description

Specifies the attributes of text written on or in the control.

To change to a new font, specify a new TFont object. To modify a font, change the value of the Charset, Color, Height, Name , Pitch, Size, or Style of the TFont object.

Note: Changing the font color of the Caption is not supported for some controls (such as TButton). In most cases, there is an alternate control you can use whose Font property will change the color of the caption or text (such as TBitBtn or TSpeedButton).

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance