Javascript: TXTextControl.Selection.getText Method

Gets the currently selected text. Takes a callback function as a parameter which is called with a string containing the currently selected text.

Introduced: 26.0.

Syntax

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

A function with one parameter. Is called with a string containing the currently selected text.

See Also