Share via


TextRange.expand Method

SharePoint Designer Developer Reference

Expands the range so that partial units are completely contained and returns a Boolean that represents whether the method was successful.

Syntax

expression.expand(Unit)

expression   Required. A variable that represents an TextRange object.

Parameters

Name Required/Optional Data Type Description
Unit Required String Specifies the number of units to move in the range. Can be one of the following String values.
character Expands a character.
word Expands a word. A word is a collection of characters terminated by a space or another white-space character, such as a tab.
sentence Expands a sentence. A sentence is a collection of words terminated by an ending punctuation character, such as a period.
textedit Expands to enclose the entire range.

See Also