Replaces the text of the current object.
HRESULT replaceWholeText( BSTR bstrText, IHTMLDOMNode **ppRetNode );
- [in] The text that replaces the existing text.
- [out, retval] A TextNode object that received the replacement text. If the replaced text was empty, this value will be NULL. If the current node is read-only, a new TextNode object is returned. If the current node is not read-only, the same object is returned.
Returns one of the following values.
S_OK The operation completed successfully. W3CException_DOM_NO_MODIFICATION_ALLOWED_ERR An attempt is made to modify an object that cannot be changed.
Internet Explorer 9. The IHTMLDOMTextNode3::replaceWholeText method is supported only when webpages are displayed in IE9 Standards mode.