Retrieves an element or a collection from the given collection. The index parameter determines which action to take.
Syntax
HRESULT item( long index, IHTMLStyleSheetRule **ppHTMLStyleSheetRule );
Parameters
- index
- Value that contains the number that specifies the position of an element to retrieve.
- ppHTMLStyleSheetRule
- Address of a pointer to the IHTMLStyleSheetRule interface of the styleSheets collection.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This function returns an S_OK even if the element is not found. The programmer should check the value of the ppHTMLStyleSheetRule pointer returned by this call. If the value of the pointer is NULL, the element was not found and the call was not successful.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0