StyleSheet Object

SharePoint Designer Developer Reference

Represents a cascading style sheet reference in 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 referenced in a document. Use the Item method to return a StyleSheet 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 StyleSheet
Set objStyleSheet = ActiveDocument.styleSheets.Item(0)

See Also