AngleSharp by Florian Rappl

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

.NET API 1,189,376 bytes

 SimpleSelector

Represents a simple selector (either a type selector, universal selector, attribute selector, class selector, id selector or pseudo-class).
public static ISelector All { get; }

Gets a selector that matches all elements.

public Priority Specifity { get; }

Gets the specifity of the given selector.

public string Text { get; }

Gets the string representation of the selector.

public SimpleSelector()

Creates a simple universal selector.

public SimpleSelector(string match)

Creates a simple type selector.

public SimpleSelector(Predicate<IElement> matches, Priority specifify, string code)

Creates a simple selector with the given predicate.

public static SimpleSelector AttrAvailable(string match, string prefix = null)

Creates a new attribute available selector.

public static SimpleSelector AttrBegins(string match, string value, string prefix = null)

Creates a new attribute matches the begin selector.

public static SimpleSelector AttrContains(string match, string value, string prefix = null)

Creates a new attribute contains selector.

public static SimpleSelector AttrEnds(string match, string value, string prefix = null)

Creates a new attribute matches the end selector.

public static SimpleSelector AttrHyphen(string match, string value, string prefix = null)

Creates a new attribute matches hyphen separated list selector.

public static SimpleSelector AttrList(string match, string value, string prefix = null)

Creates a new attribute matches a list entry selector.

public static SimpleSelector AttrMatch(string match, string value, string prefix = null)

Creates a new attribute match selector.

public static SimpleSelector AttrNotMatch(string match, string value, string prefix = null)

Creates a new attribute not-match selector.

public static SimpleSelector Class(string match)

Creates a new class selector.

public static SimpleSelector Id(string match)

Creates a new ID selector.

public static SimpleSelector PseudoClass(Predicate<IElement> action, string pseudoClass)

Creates a new pseudo class : selector.

public static SimpleSelector PseudoElement(Predicate<IElement> action, string pseudoElement)

Creates a new pseudo element :: selector.

public static SimpleSelector Type(string match)

Creates a new type selector.

public static SimpleSelector Universal()

Gets a selector that matches all elements.

public bool Match(IElement element)

Determines if the given object is matched by this selector.