StyleSheetExtensions
Defines a set of extension methods for style sheets.
Creates a new CSS rule and appends it to the current node.
public static ICssStyleRule AddNewStyle(this ICssRuleCreator creator, string selector = null, IDictionary<string, string> declarations = null)
Creates a new CSS style rule and appends it to the current node. The
given selector and declarations are set in the beginning.
public static ICssStyleRule AddNewStyle(this ICssRuleCreator creator, string selector, object declarations)
Creates a new CSS style rule and appends it to the current node.
The given selector and declarations from an anonymous object are set
in the beginning.
Gets all descendents of the provided node.
Gets all descendents of the provided node.
Gets the comments contained in the sheet, if any.
Gets the associated document of the sheet if any.
Gets if the link contains a stylesheet that is regarded alternate.
Gets if the link contains a stylesheet that is regarded persistent.
Gets if the link contains a stylesheet that is regarded preferred.
public static IEnumerable<TRule> RulesOf<TRule>(this IEnumerable<IStyleSheet> sheets) where TRule : ICssRule
Gets all rules that are of the provided type.
public static IEnumerable<ICssStyleRule> StylesWith(this IEnumerable<IStyleSheet> sheets, ISelector selector)
Gets all style rules that have the same selector text.