IHTMLStyleSheet4 interface

This interface extends the IHTMLStyleSheet, IHTMLStyleSheet2, and IHTMLStyleSheet3 interfaces for Windows Internet Explorer 9.

Members

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

  • Methods
  • Properties

Methods

The IHTMLStyleSheet4 interface has these methods.

Method Description
deleteRule

Deletes a rule from the style sheet.

insertRule

Inserts a new rule into the style sheet.

 

Properties

The IHTMLStyleSheet4 interface has these properties.

Property Description

cssRules

Retrieves a list of all CSS rules contained within the parent object.

href

Sets or retrieves the URL of the linked style sheet.

media

Sets or retrieves the media type.

ownerNode

Retrieves the node that associates this style sheet with the document.

ownerRule

Retrieves a value that indicates whether this style sheet comes from an @import rule or a link (an element or processing instruction).

title

Sets or retrieves the title of the style sheet.

type

Retrieves the CSS language in which the style sheet is written.

 

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch