共用方式為


IHTMLCommentElement2 interface

Extends the IHTMLCommentElement interface.

Members

The IHTMLCommentElement2 interface inherits from the IDispatch interface. IHTMLCommentElement2 also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLCommentElement2 interface has these methods.

Method Description
appendData

Adds a new character string to the end of the object.

deleteData

Removes a specified range of characters from the object.

insertData

Inserts a new character string in the object at a specified offset.

replaceData

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

substringData

Extracts a range of characters from the object.

 

Properties

The IHTMLCommentElement2 interface has these properties.

Property Description

data

Sets or retrieves the URL that references the data of the object.

length

Sets or retrieves the number of objects in a collection.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch