deleteContents method

[This documentation is preliminary and is subject to change.]

Removes all contents within a selected range.

Document Object Model (DOM) Level 2 Traversal and Range Specification, Section 2.13Internet Explorer 9

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