EndOfLine Method
Home Page (Objects) | Overview | FAQ | Reference
Applies to: TextSelection object
Moves the insertion point to the end of the last line in a selection.
Syntax
object**.EndOfLine** [extend]
Parameters
object
An expression that evaluates to a TextSelection object.
extend
(Optional) A string constant of type DsMovementOptions that specifies what to do with the selection. Possible values are:
dsExtend Extends the selection.This is the same as pressing SHIFT+END.
dsMove Does not extend the selection (the default).
Remarks
The EndOfLine method has the same effect as pressing the END key.
Example
For the current selection, the following example moves the insertion point to the end of the last line in the selection:
ActiveDocument.Selection.EndOfLine
See Also StartOfLine method.