Javascript: TXTextControl.Selection.getFontName Method

Gets the font of the selected text. Takes a callback function as a parameter which is called with the font of the selected text.

Introduced: 26.0.

Syntax

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

A function with one parameter. Is called with the bold attribute of the selected text. The attribute is an empty string when the text selection contains multiple characters with mixed font names.

See Also