IHTMLStyleSheetsCollection Object
Multiple objects IHTMLStyleSheetsCollection |
Represents a collection of cascading style sheets attached to an HTML document. The IHTMLStyleSheetsCollection object provides access to a limited number of properties and methods related to a collection of cascading style sheets. For access to all properties and methods, use the FPHTMLStyleSheetsCollection object.
Using the IHTMLStyleSheetsCollection object
Use the styleSheets property to return an IHTMLStyleSheetsCollection 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 IHTMLStyleSheetsCollection
Set objStyleSheet = ActiveDocument.styleSheets
Properties | Length Property
Methods | item Method
Parent Objects | DispFPHTMLDocument Object | FPHTMLDocument Object | FPHTMLStyleSheet Object | IHTMLDocument2 Object | IHTMLStyleSheet Object
Child Objects