Interface ICSSStyleSheet
Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.2.0)
The CSSStyleSheet interface is a concrete interface used to represent a CSS style sheet i.e., a style sheet whose content type is “text/css”.
[ComVisible(true)]
[DOMObject]
[DOMName("CSSStyleSheet")]
public interface ICSSStyleSheet : IStyleSheet
Implements
Properties
CSSRules
The list of all CSS rules contained within the style sheet. This includes both rule sets and at-rules.
[DOMName("cssRules")]
ICSSRuleList CSSRules { get; }
Property Value
OwnerRule
If this style sheet comes from an @import rule, the ownerRule attribute will contain the CSSImportRule. In that case, the ownerNode attribute in the StyleSheet interface will be null. If the style sheet comes from an element or a processing instruction, the ownerRule attribute will be null and the ownerNode attribute will contain the Node.
[DOMName("ownerRule")]
[DOMNullable]
ICSSRule OwnerRule { get; }
Property Value
Methods
DeleteRule(int)
Used to delete a rule from the style sheet.
[DOMName("deleteRule")]
void DeleteRule(int index)
Parameters
index
int
The index.
InsertRule(string, int)
Used to insert a new rule into the style sheet. The new rule now becomes part of the cascade.
[DOMName("insertRule")]
long InsertRule(string rule, int index)
Parameters
rule
string
The style rule.
index
int
The rule index.
Returns
The inserted index