StyleSheetsCollection Object

SharePoint Designer Developer Reference

Represents a collection of cascading style sheets attached to an HTML document.

Interfaces
This object implements the following interfaces

Remarks

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

Visual Basic for Applications
Dim objStyleSheet As StyleSheetsCollection
Set objStyleSheet = ActiveDocument.styleSheets

See Also