IHTMLAttributeCollection4 interface

Provides programmatic access to items in an element's attribute collection. This interface extends the IHTMLAttributeCollection3 interface.

Members

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

  • Methods
  • Properties

Methods

The IHTMLAttributeCollection4 interface has these methods.

Method Description
getNamedItem

Gets an IHTMLDOMAttribute specified with the IHTMLDOMAttribute2::name property, by using the IHTMLAttributeCollection interface.

getNamedItemNS

Gets an IHTMLDOMAttribute object that is specified with the IHTMLDOMAttribute2::name property and namespace, by using the IHTMLAttributeCollection interface.

removeNamedItem

Removes an IHTMLDOMAttribute specified with the IHTMLDOMAttribute2::name property from an element by using the IHTMLAttributeCollection interface.

removeNamedItemNS

Removes a named item that is specified by a namespace and local name.

setNamedItem

Adds an IHTMLDOMAttribute to an element by using an IHTMLAttributeCollection interface.

setNamedItemNS

Adds an IHTMLDOMAttribute object to an element by using its IHTMLDOMNode3::namespaceURI and IHTMLDOMNode3::localName properties.

 

Properties

The IHTMLAttributeCollection4 interface has these properties.

Property Description

length

Sets or retrieves the number of objects in a collection.

 

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch