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

IHTMLTxtRange::collapse Method


Creates an empty range either at the beginning or end of the current range.

Syntax

HRESULT collapse(
    VARIANT_BOOL Start 
);

Parameters

Start
Boolean value that specifies where to create the empty range. TRUE creates an empty range at the beginning of the current range; FALSE creates it at the end.

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

expand


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.