
This interface provides access to a collection of element objects.
This collection is indexed first by name, then by id. If duplicate names are found, a collection of those named items is returned. Collections of duplicate names must subsequently be referenced 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.
IHTMLElementCollection Methods
| toString | put_length | get_length |
| get__newEnum | item | tags |
HRESULT toString(
BSTR *String
);
Retrieves a string representation of the element collection object.
HRESULT put_length(
long v
);
Sets the size, in objects, of the collection.
See also get_length
HRESULT get_length(
long *p
);
Retrieves the number of objects in the collection.
See also put_length
HRESULT get__newEnum(
IUnknown **p
);
Retrieves an enumerator for the collection.
HRESULT item(
VARIANT name,
VARIANT index,
IDispatch **pdisp
);
Retrieves an object or a collection from the given collection. The name determines which action to take.
HRESULT tags(
VARIANT tagName,
IDispatch **pdisp
);
Retrieves a collection of all objects in the given collection that have the given HTML tag name.
This method returns an empty collection if no objects having the given name are found. Use the length property on the collection to determine the number of objects it contains.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.