
This interface provides the abilities to obtain the number of styleSheets in the collection, and to iterate through the styleSheets collection of the STYLE element.
A zero-based collection of style sheets is exposed from the document object. Each style sheet object represents an individual style sheet that is defined for the document. This object represents instances of the LINK and STYLE elements with a relationship (rel attribute) of STYLESHEET.
Imported style sheets are contained within a STYLE element and are accessible through the IHTMLStyleSheet::get_imports method.
IHTMLStyleSheetsCollection Methods
| get_length | get__newEnum | item |
HRESULT get_length(
long *p
);
Retrieves the number of elements in a collection.
This property is read-write on the areas and the options collection for image maps and select boxes, respectively. This allows a developer to shrink the collection.
HRESULT get__newEnum(
IUnknown **p
);
Retrieves an enumerator interface which can be used to iterate through the styleSheets collection of the STYLE element.
HRESULT item(
VARIANT *pvarIndex,
VARIANT *pvarResult
);
Retrieves an styleSheet element or a collection of styleSheets. The index determines which action to take.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.