IHTMLAreasCollection::itemIHTMLAreasCollection::item*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLAreasCollection::get__newEnum
*Next Topic: IHTMLAreasCollection::put_length

IHTMLAreasCollection::item


HRESULT item(
    VARIANT name, 
    VARIANT index, 
    Rob
  
);

Retrieves an element or a collection from the given collection. The index parameter determines which action to take.

name
VARIANT structure that contains the number or string specifying the element or collection to retrieve. If this parameter is a number, the method returns the element in the collection at the given position, where the first element has value 0, the second has 1, and so on. If this parameter contains a string, the method returns a collection of elements, where the value of the name or id property for each element is equal to the string.
index
VARIANT structure that contains the number specifying the position of an element to retrieve. This parameter is used when name is a string. The method uses the string to construct a collection of all elements that have a name or id equal to the string, then retrieves from this collection the element at the position specified by index.
pdisp
Address of a pointer to an IDispatch interface.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.