setRange method

This method selects a range as the current selection of the document.

Defined in

Selection

Syntax

public void setRange( TextRange start, TextRange end )

Parameters

TextRange start

Specifies the starting position of the selection.

TextRange end

Specifies the ending position of the selection.

See examples

Example: setRange method