Show/Hide Toolbars

EmEditor Help

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

EmEditor Macro Reference: GetTopPointX Method

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

GetTopPointX Method

Returns the column number of the top of the selection.

[JavaScript]

xPos = document.selection.GetTopPointX( nFlags [, iSel ] );

[VBScript]

xPos = document.selection.GetTopPointX( nFlags [, iSel ] )

Parameters

nFlags

Specifies a combination of the following values:

eePosView

Returns the column position.

eePosLogical

Returns the number of characters 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.

eePosCell

CSV cell unit.

iSel

Optional. Specifies the one-based index of the selection. If 0 is specified or omitted, the normal selection is specified.

Version

Supported in EmEditor Professional Version 4.00 or later.

Copyright © 2003-2016 by Emurasoft, Inc.