The IHTMLStyleSheetsCollection interface provides the ability to obtain the number of styleSheets in the collection, and to iterate through the styleSheets collection of the STYLE element.
IHTMLStyleSheetsCollection Methods
get__newEnum Retrieves an enumerator interface which can be used to iterate through the styleSheets collection of the STYLE element. get_length Retrieves the number of elements in a collection. item Retrieves a styleSheet element or a collection of styleSheets. The index determines which action to take.
Interface Information
Implementation System (Mshtml.dll) Inherits from IDispatch Header and IDL files Mshtml.h, Mshtml.idl Minimum availability Internet Explorer 4.0 Minimum operating systems Windows 95, Windows NT 4.0
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Remarks
A zero-based collection of style sheets is exposed from the document object. Each style sheet object represents an individual style sheet for the document. This object represents instances of the LINK and STYLE elements whose rel attributes are set to styleSheet.
Imported style sheets are contained within a STYLE element and are accessible through the IHTMLStyleSheet::get_imports method.