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)
Properties | cssText Property | disabled Property | href Property | id Property | imports Property | media Property | owningElement Property | parentStyleSheet Property | readOnly Property | rules Property | title Property | Type Property
Methods | addImport Method | addRule Method | removeImport Method | removeRule Method
Parent Objects | FPHTMLLinkElement Object | FPHTMLStyleElement Object | FPHTMLStyleSheet Object | IHTMLLinkElement Object | IHTMLStyleElement Object | IHTMLStyleSheet Object
Child Objects | IHTMLElement Object | IHTMLStyleSheet Object | IHTMLStyleSheetRulesCollection Object | IHTMLStyleSheetsCollection Object