IHTMLElementCollection interface

TProvides access to a collection of element objects.

Members

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

  • Methods
  • Properties

Methods

The IHTMLElementCollection interface has these methods.

Method Description
item

Retrieves a form object or an object from an elements collection.

tags

Retrieves a collection of objects that have the specified HTML tag name.

 

Properties

The IHTMLElementCollection interface has these properties.

Property Description

length

Sets or retrieves the number of objects in a collection.

 

Remarks

If duplicate names are found, a collection of those named items is returned. Collections of duplicate names must be referenced subsequently by ordinal position.

A zero-based collection, in source order, of all elements in a given form can contain any combination of input elements, select elements, and textArea elements.

This interface may also be referred to in code as IOmElementsCollection2.

This interface may also be referred to in code as IOmImagesCollection to indicate that all elements in the given collection are of the image type.

This interface may also be referred to in code as IOmLinksCollection2 to indicate that all elements in the given collection are of the link type.

This interface may also be referred to in code as IOmAnchorsCollection2 to indicate that all elements in the given collection are of the anchor type.

This interface may also be referred to in code as IOmFormsCollection2 to indicate that all elements in the given collection are of the form type.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

Reference

IHTMLElementCollection2

IHTMLElementCollection3