Share via


TextRange.moveStart Method

SharePoint Designer Developer Reference

Moves the starting position of a TextRange object. Returns a Long that represents the number of units moved.

Syntax

expression.moveStart(Unit, Count)

expression   Required. A variable that represents a TextRange object.

Parameters

Name Required/Optional Data Type Description
Unit Required String Specifies the type of unit. Can be one of the following values:
Value Description
character Moves one or more characters.
word Moves one or more words. A word is a collection of characters terminated by a space or some other white-space character, such as a tab. Punctuation is also included in the word count, so a period at the end of a sentence or a comma in the middle of a sentence increases the word count by one.
sentence Moves one or more sentences. A sentence is a collection of words terminated by a punctuation character, such as a period.
textedit Moves to the start or end of the original range.
Count Optional Long Specifies the number of units to move. This can be positive (moves the start of the range to the right) or negative (moves the start of the range to the left). The default is 1.

Return Value
Long

See Also