Contents Index Topic Contents | ||
Previous Topic: IHTMLTxtRange::execCommandShowHelp Next Topic: IHTMLTxtRange::findText |
IHTMLTxtRange::expand
HRESULT expand( BSTR Unit, VARIANT_BOOL *Success );Expands the range so that partial units are completed contained.
- Returns S_OK if successful, or an error value otherwise.
- Unit
- String specifying 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 the range was successfully expanded, or FALSE if not.
See also collapse
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.