Javascript: TXTextControl.Selection.getFontSize Method

Gets the font's size, in points, of the selected text. Takes a callback function as a parameter which is called with the font's size, in points, of the selected text.

Introduced: 26.0.

Syntax

[JavaScript]
<void> Selection.getFontSize(<function> callback);
Parameter Description
callback

A function with one parameter. Is called with the fontsize attribute of the selected text. The property's default value is 10 points, which equals 200 twips. The property returns its default value when the text selection contains multiple characters with mixed font sizes.

See Also