deleteContents method
[This documentation is preliminary and is subject to change.]
Removes all contents within a selected range.
![]() ![]() |
Syntax
HRESULT retVal = object.deleteContents();
Standards information
Parameters
This method has no parameters.
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_NO_MODIFICATION_ALLOWED_ERR | Some of the contents or nodes are read-only. |
Remarks
If the deleted range contains closing or opening tags, the remaining tags are completed.
Build date: 1/26/2012
.png)
.png)