Click to return to the Reusing Browser Technology home page    
IHTMLTxtRange::execComman...     IHTMLTxtRange::findText M...     IHTMLTxtRange Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLTxtRange::expand Method


Expands the range so that partial units are contained within the range.

Syntax

HRESULT expand(
    BSTR Unit,
    VARIANT_BOOL *Success 
);

Parameters

Unit
String that specifies the unit by which to expand the range. Can be one of these values:

Character Expands a character.
Word Expands a word. A word is a collection of characters terminated by a space or other white space character, such as a tab or return character.
Sentence Expands a sentence. A sentence is a collection of words terminated by a punctuation character, such as a period.
Textedit Expands to enclose the entire range.

Success
Address of a variable that receives TRUE if the range was successfully expanded, or FALSE if not.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

collapse


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.