AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.4" />

.NET API 1,232,384 bytes

 StyleSheetExtensions

public static class StyleSheetExtensions
Defines a set of extension methods for style sheets.
public static IEnumerable<T> GetAll<T>(this ICssNode node) where T : IStyleFormattable

Gets all descendents of the provided node.

public static IEnumerable<ICssNode> GetAllDescendents(this ICssNode node)

Gets all descendents of the provided node.

public static IEnumerable<ICssComment> GetComments(this ICssNode node)

Gets the comments contained in the sheet, if any.

public static IDocument GetDocument(this IStyleSheet sheet)

Gets the associated document of the sheet if any.

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.