AngleSharp by AngleSharp

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

.NET API 1,244,160 bytes

 StyleExtensions

static class StyleExtensions
A set of extension methods for style / related methods.
public static CssStyleDeclaration ComputeDeclarations(this StyleCollection rules, IElement element, string pseudoSelector = null)

Computes the declarations for the given element in the context of the specified styling rules.

public static IStyleSheetList CreateStyleSheets(this INode parent)

Creates a new StyleSheetList instance for the given node.

public static IStringList CreateStyleSheetSets(this INode parent)

Creates a new StringList instance with stylesheet sets for the given node.

public static void EnableStyleSheetSet(this IStyleSheetList sheets, string name)

Sets the enabled style sheet sets in the list of style sheets.

public static IEnumerable<string> GetAllStyleSheetSets(this IStyleSheetList sheets)

Gets all possible style sheet sets from the list of style sheets.

public static IEnumerable<string> GetEnabledStyleSheetSets(this IStyleSheetList sheets)

Gets the enabled style sheet sets from the list of style sheets.

public static IEnumerable<IStyleSheet> GetStyleSheets(this INode parent)

Gets an enumeration over all the stylesheets from the given parent.

public static string LocateNamespace(this IStyleSheetList sheets, string prefix)

Tries to find the matching namespace url for the given prefix.