Home Page (Objects) | Overview | FAQ | Reference
Applies to: TextSelection object
Moves the insertion point to the end of the document.
Syntax
object.EndOfDocument [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:
Remarks
The EndOfDocument method has the same effect as pressing CTRL+END.
Example
The following example moves the insertion point to the end of the current document:
ActiveDocument.Selection.EndOfDocument
See Also StartOfDocument method.