Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

replaceData method

Replaces a specified range of characters in the object with a new character string.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4


HRESULT retVal = object.replaceData(offset, Count, bstrstring);


offset [in]

Type: long

long that specifies the offset from which to start.

Count [in]

Type: long

long that specifies the number of characters to replace.

bstrstring [in]

Type: BSTR

BSTR that specifies the new character string.

Return value


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information


If the sum of the offset and Count parameters exceeds the number of characters in the object, then all the characters to the end of the data are replaced.

IHTMLDOMTextNode3::replaceData was introduced in Microsoft Internet Explorer 6



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.