TXTextControl.FontName Property

Returns or sets the font used to display text. At design time this property changes or gets the font name of the complete text. At runtime this property determines the font of the selected text when the FormatSelection property has been set to True. When the FormatSelection property has been set to False the font of the complete text is set or returned.

Syntax

TXTextControl.FontName [= string]

Remarks

The property returns an empty string if the selected text contains different fonts. This can happen only at runtime and when the FormatSelection property has been set to True.

Data Types

String.

See Also