setEnd method
[This documentation is preliminary and is subject to change.]
Sets the end point of the range.
![]() ![]() |
Syntax
HRESULT retVal = object.setEnd(refNode, offset);
Standards information
Parameters
refNode [in]
Type: IDispatchPointer to an IHTMLDOMNode in the document hierarchy.
offset [in]
Type: longSpecifies the offset value for the end point.
Return value
Type: HRESULT
This method can return one of these values.
| Return code | Description |
|---|---|
| S_OK | The operation completed successfully. |
| W3CException_DOM_INVALID_STATE | detach has been invoked on the object. |
| W3Exception_DOM_INDEX_SIZE_ERR | offset is negative or greater than the number of child units in refNode. |
Build date: 1/26/2012
.png)
.png)