TX Text Control ActiveX

FontSize Property

Property

Returns or sets a value that specifies the size of the font used to display text. This value is in points. At design time this property changes or gets the font size of the complete text. At runtime this property determines the font size of the selected text when the FormatSelection property has been set to True. When the FormatSelection property has been set to False the font size of the complete text is set or returned.

Syntax

TXTextControl.FontSize [= value]

Data Types

Integer.

Remarks

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

See Also