Expand Minimize

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

Syntax

object.replaceData(offset, Count, bstrstring)

Parameters

offset [in]

Type: Integer

Integer that specifies the offset from which to start.

Count [in]

Type: Integer

Integer that specifies the number of characters to replace.

bstrstring [in]

Type: String

String that specifies the new character string.

Return value

Type: HRESULT

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

Standards information

Remarks

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.

See also

comment
TextNode

 

 

Show:
© 2014 Microsoft