Click to return to the Reusing Browser Technology home page    
IHTMLRectCollection::get_...     IHTMLRuleStyle Interface     IHTMLRectCollection Inter...    
Web Workshop  |  Reusing Browser Technology

IHTMLRectCollection::item Method


Retrieves an element or a collection pointer in a RectCollection.

Syntax

HRESULT item(
    VARIANT *name,
    IDispatch **pdisp
);

Parameters

name
Optional. Address of a VARIANT structure that specifies the name of the item in the collection.
pdisp
Address of a pointer to the IDispatch interface that returns the item in the collection.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This function returns S_OK even if the element is not found. The developer should check the value of the pdisp pointer returned by this call. If the value of the pointer is NULL, the element was not found and the call was not successful.



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.