SetSelectionRange Method (AWTTextComponent)

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 zero-based. Integer.
selectionEnd The end position of the selection. The value is zero-based. Integer.

Examples

textComponent.SetSelectionRange(11, 15)