Share via


StartOfLine Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Moves the insertion point to the beginning of a line.

Syntax

object**.StartOfLine** [moveto][**,**extend]

Parameters

object

An expression that evaluates to a TextSelection object.

moveto

* *(Optional) A string constant of type DsStartOfLineOptions that represents the place to which the insertion point moves. Possible values are:

  • dsFirstColumn   Moves the insertion point to the first column in the line (the default).

  • dsFirstText   Moves the insertion point to the first text character in the line.

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+HOME.

  • dsMove   Does not extend the selection (the default).

Example

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

ActiveDocument.Selection.StartOfLine dsExtend

See Also   EndOfLine method.