expand Method
Expands the range so that partial units are completely contained and returns a Boolean that represents whether the method was successful.
expression.expand(Unit)
expression Required. An expression that returns one of the objects in the Applies To list.
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. |