Javascript: TXTextControl.Selection.getBaseline Method

Gets the baseline alignment, in twips, of the selected text. Takes a callback function as a parameter which is called with the baseline alignment, in twips, of the selected text. Positive values moves the baseline to superscript, negative values move the baseline to subscript.

Introduced: 26.0.

Syntax

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

A function with one parameter. Is called with the baseline alignment, in twips, of the selected text. Positive values moves the baseline to superscript, negative values move the baseline to subscript.

See Also