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