FPHTMLStyleSheetsCollection Object

Microsoft FrontPage Visual Basic

FPHTMLStyleSheetsCollection Object

FPHTMLStyleSheetsCollection

Represents a collection of cascading style sheets attached to an HTML document. See also the IHTMLStyleSheetsCollection object.

Using the FPHTMLStyleSheetsCollection object

Use the styleSheets property to return an FPHTMLStyleSheetsCollection collection that represents a collection of all the cascading style sheets attached to an HTML document. Use the Item method to return an individual FPHTMLStyleElement 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 FPHTMLStyleSheetsCollection

Set objStyleSheet = ActiveDocument.styleSheets