Share via


IHTMLStyleSheetsCollection interface

This interface provides the ability to obtain the number of styleSheets in the collection, and to iterate through the styleSheets collection of the style element.

Members

The IHTMLStyleSheetsCollection interface inherits from the IDispatch interface. IHTMLStyleSheetsCollection also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLStyleSheetsCollection interface has these methods.

Method Description
item

Retrieves an object from a collection.

 

Properties

The IHTMLStyleSheetsCollection interface has these properties.

Property Description

length

Sets or retrieves the number of objects in a collection.

 

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::imports method.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch