Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
expand

expand method

Expands the range so that partial units are completely contained.

Syntax


 retVal = object.expand(Unit);

Parameters

Unit [in]

Type: BSTR

BSTR that specifies the units to move in the range, using one one of the following 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.

Standards information

There are no standards that apply here.

Remarks

This feature might not be available on non-Microsoft Win32 platforms.

See also

IHTMLDOMRange::collapse

 

 

Community Additions

ADD
Show:
© 2015 Microsoft