IHTMLStyleSheetRule Object
IHTMLStyleSheetRulesCollection IHTMLStyleSheetRule IHTMLRuleStyle |
Represents an individual rule from a collection of cascading style sheet (CSS) rules.
Using the IHTMLStyleSheetRule object
Use the rules property to return an IHTMLStyleSheetRulesCollection collection that represents a collection of all the cascading style sheet rules in an attached CSS. Use the Item method to return an IHTMLStyleSheetRule object that accesses a specific CSS rule, referenced by ordinal number. The following example accesses the first rule in the collection of CSS rules for the first CSS attached to the active document.
Dim objCSS As FPHTMLStyleSheet
Dim objRules As IHTMLStyleSheetRulesCollection
Dim objRule As IHTMLStyleSheetRule
Set objCSS = ActiveDocument.styleSheets(0)
Set objRules = objCSS.rules
Set objRule = objRules.Item(0)
Properties | readOnly Property | selectorText Property | style Property
Parent Objects
Child Objects | IHTMLRuleStyle Object