Click to return to the Reusing Browser Technology home page    
IHTMLStyleSheetRulesColle...     IHTMLStyleSheetsCollectio...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLStyleSheetsCollection Interface


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.



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.