Collapses (or removes) a range by moving the insertion point to the beginning or end of the current range.
HRESULT collapse( VARIANT_BOOL toStart );
- [in] VARIANT_BOOL that specifies one of the following values:
- Default. Moves the insertion point to the beginning of the range.
- Moves the insertion point to the end of the range.
Returns one of the following values.
S_OK The operation completed successfully. W3CException_DOM_INVALID_STATE IHTMLDOMRange::detach has been invoked on the object.