IHTMLStyleSheet Object

Microsoft FrontPage Visual Basic

IHTMLStyleSheet Object

Multiple objects IHTMLStyleSheet
Multiple objects

Represents a cascading style sheet reference in an HTML document. The IHTMLStyleSheet object provides access to a limited number of properties and methods related to cascading style sheets. For access to all properties and methods, use the FPHTMLStyleSheet object.

Using the IHTMLStyleSheet object

Use the styleSheets property to return an FPHTMLStyleSheetsCollection collection that represents a collection of all the cascading style sheets referenced in a document. Use the Item method to return an IHTMLStyleSheet object that accesses a specific cascading style sheet, referenced by ordinal number or by the value of the id attribute. The following example accesses the first cascading style sheet in the active document.

    Dim objStyleSheet As IHTMLStyleSheet

Set objStyleSheet = ActiveDocument.styleSheets.Item(0)