Replaces the current selection with an empty selection (or a caret) at the given offset.
HRESULT collapse( IDispatch *parentNode, long offset );
- [in] The parent node that the selection is contained in.
- [in] The number of units from the start in which to place the caret or collapsed selection.
Returns S_OK if successful, or an error value otherwise.
Raises a WRONG_DOCUMENT_ERR DOMException if the parentNode is in another document.