AngleSharp.Css by AngleSharp

<PackageReference Include="AngleSharp.Css" Version="1.0.0-alpha-109" />

.NET API 442,368 bytes

 ICssRule

public interface ICssRule : IStyleFormattable
Represents the base interface for a CSS rule.
string CssText { get; set; }

Gets the textual representation of the rule.

Gets the CSSStyleSheet object that owns this rule, if any.

ICssRule Parent { get; }

Gets the containing (parent) rule, if any.

CssRuleType Type { get; }

Gets the type constant indicating the type of CSS rule.

Sets the owning sheet. This implies using no parent.

void SetParent(ICssRule rule)

Sets the parent rule. This implies using the owner from the given rule.