deleteData
Collapse the table of content
Expand the table of content

deleteData method

Removes a specified range of characters from the object.

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

 

Syntax


HRESULT retVal = object.deleteData(offset, Count);

Parameters

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 remove.

Return value

Type: HRESULT

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

Standards information

Remarks

IHTMLCommentElement2::deleteData was introduced in Microsoft Internet Explorer 6

Upon success of this method, the IHTMLCommentElement2::data and IHTMLCommentElement2::length properties reflect the change.

 

 

Show:
© 2016 Microsoft