IHTMLAttributeCollection3::item Method

Retrieves an object from a collection.

Syntax


HRESULT item(
    long index,
    IHTMLElement2 **pNode
);

Parameters

index
long variable that specifies the element or collection to retrieve. 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.
pNode
[out, retval] The address of a pointer to a variable that receives an IHTMLElement2 interface for the object or collection if successful, or NULL otherwise.

Return Value

Returns S_OK if successful, or an error value otherwise.

Community Additions

Show: