StartOfDocument Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Moves the insertion point to the beginning of the document.

Syntax

object.StartOfDocument [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 StartOfDocument method has the same effect as pressing CTRL+HOME.

Example

The following example moves the insertion point to the beginning of the document and extends the selection:

ActiveDocument.Selection.StartOfDocument dsExtend

See Also   EndOfDocument method.