TextFont property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

Graphics::TFont* TextFont

Delphi Syntax

TextFont: TFont

Overview

Refer to Drawing Three-Dimensional Shapes and Text.

Remarks

(Persistent property, available at design time) Specifies the Font object for any text that you draw using the DrawTextStr method.

You can set the Font object's properties at design time in the Object Inspector. At run time, you set these properties as in the following example:

Lead1.TextFont.Name := 'Arial'

For a list of Font object properties, refer to Delphi of C++ Builder documentation.

See Also

Topics:

Working with the Control: Client Area Usage

 

Raster Images: Drawing on a Bitmap