SetSelectionRange Method (JTextComponent)

Action

Selects the text within the specified range.

Syntax

C#
textComponent.SetSelectionRange(selectionStart, selectionEnd)
VB
textComponent.SetSelectionRange(selectionStart, selectionEnd)
Variable Description
selectionStart The start index of the selection. The value is zero-based. Integer.
selectionEnd The end index of the selection. The value is zero-based. Integer.

Examples

VB

textComponent.SetSelectionRange(8, 13)