SetSelectionRange Method (AWTTextComponent)

Class

AWTTextComponent class

Action

Selects the text within the specified range.

Syntax

textComponent.SetSelectionRange(selectionStart, selectionEnd)
Variable Description
selectionStart The start position of the selection. The value is one-based. INTEGER.
selectionEnd The end position of the selection. The value is one-based. INTEGER.

Examples

TextComponent.SetSelectionRange(11, 15)