Click to return to the Reusing Browser Technology home page    
IHTMLElement2::setExpresi...     IHTMLElementCollection::g...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLElementCollection Interface


This interface provides access to a collection of element objects.

IHTMLElementCollection Methods

get__newEnum Retrieves an enumerator for the collection.
get_length Retrieves the number of objects in the collection.
item Retrieves an object or a collection from the given collection.
put_length Sets the size, in objects, of the collection. This method works only on area elements and options.
tags Retrieves a collection of all objects in the given collection that have the given HTML tag name.
toString Retrieves a string representation of the element collection object.

Interface Information

Implementation System (Mshtml.dll)
Inherits from IDispatch
Header and IDL files Mshtml.h, Mshtml.idl
Minimum availability Internet Explorer 5
Minimum operating systems Windows 95, Windows NT 4.0

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

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. This collection can contain any combination of INPUT, SELECT, and TEXTAREA elements.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.