Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Selection Object > Methods

EmEditor Macro Reference: SetAnchorPoint Method

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Selection Object

SetAnchorPoint Method

Sets the origin point of the selection.

[JavaScript]

document.selection.SetAnchorPoint( nFlags, xPos, yPos );

[VBScript]

document.selection.SetAnchorPoint nFlags, xPos, yPos

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 new lines (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 origin point of the selection.

yPos

Specifies the line number of the origin point of the selection.

Version

Supported on EmEditor Professional Version 4.03 or later.

Copyright © 2003-2016 by Emurasoft, Inc.