expand Method

Microsoft FrontPage Visual Basic

Show All Show All

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.

characterExpands a character.
wordExpands a word. A word is a collection of characters terminated by a space or another white-space character, such as a tab.
sentenceExpands a sentence. A sentence is a collection of words terminated by an ending punctuation character, such as a period.
texteditExpands to enclose the entire range.