SetActivePoint Method (Selection Object)

Sets the cursor position.

[JavaScript]

document.selection.SetActivePoint( nFlags, xPos, yPos [ [, bExtend ] , iSel ] );

[VBScript]

document.selection.SetActivePoint nFlags, xPos, yPos [ [, bExtend ] , iSel ]

Parameters

nFlags

Specifies a combination of the following values:

eePosView

Specifies by the column position and the line number in view.

eePosLogical

Specifies by the number of characters and lines from the previous newline characters (or the start of the document if the first line).

eePosLogicalA

Same as eePosLogical but counts a full-width character as 2.

eePosCellLogical

CSV cell unit in logical coordinates.

eePosCellView

CSV cell unit in view coordinates.

xPos

Specifies the column number of the cursor position.

yPos

Specifies the line number of the cursor position.

bExtend

Optional. Determines whether to extend the current selection. If bExtend is true, then the active end of the selection moves to the location while the anchor end remains where it is. Otherwise, both ends are moved to the specified location.

iSel

Optional. Specifies the one-based index of the selection. If 0 is specified or omitted, the normal selection is specified. If 1 or larger is specified, the nFlags parameter must be eePosLogical.

Version

Supported on EmEditor Professional Version 4.00 or later.