GetMultiSelText Function (TextField)

Class

TextField.

Action

Returns the selected text in the multi-line text box.

Syntax

lsText = textfield.GetMultiSelText()
Variable Description
lsText The selected text of each selected line. LIST OF STRING.

Notes

GetMultiSelText does not remove any blank lines within the selected text. If no text is selected, the function returns an empty list. You can set the OPT_GET_MULTITEXT_KEEP_EMPTY_LINES agent option to FALSE to remove empty lines within the selected text.

Example

LIST OF STRING lsSelText
lsSelText = TextEditor.Document.GetMultiSelText()