AngleSharp by AngleSharp

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

.NET API 1,204,224 bytes

 QueryExtensions

static class QueryExtensions
Extensions for performing QuerySelector operations.
public static bool Contains(this ITokenList list, string[] tokens)

Returns true if the underlying string contains all of the tokens, otherwise false.

public static HtmlElementCollection GetElementsByClassName(this INodeList elements, string classNames)

Returns a set of elements which have all the given class names.

public static void GetElementsByClassName(this INodeList elements, string[] classNames, List<IElement> result)

Returns a set of elements which have all the given class names.

public static HtmlElementCollection GetElementsByTagName(this INodeList elements, string tagName)

Returns a NodeList of elements with the given tag name. The complete document is searched, including the root node.

public static HtmlElementCollection GetElementsByTagName(this INodeList elements, string namespaceUri, string localName)

Returns a list of elements with the given tag name belonging to the given namespace. The complete document is searched, including the root node.

public static void GetElementsByTagName(this INodeList elements, string tagName, List<IElement> result)

Returns a NodeList of elements with the given tag name. The complete document is searched, including the root node.

public static void GetElementsByTagName(this INodeList elements, string namespaceUri, string localName, List<IElement> result)

Returns a list of elements with the given tag name belonging to the given namespace. The complete document is searched, including the root node.

public static IElement QuerySelector(this INodeList elements, string selectors)

Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.

public static T QuerySelector<T>(this INodeList elements, ISelector selectors) where T : IElement

Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the given selector.

public static IElement QuerySelector(this INodeList elements, ISelector selector)

Returns the first element within the document (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.

public static HtmlElementCollection QuerySelectorAll(this INodeList elements, string selectors)

Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) that match the specified group of selectors.

public static HtmlElementCollection QuerySelectorAll(this INodeList elements, ISelector selector)

Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) that matches the selector.

public static void QuerySelectorAll(this INodeList elements, ISelector selector, List<IElement> result)

Returns a list of the elements within the document (using depth-first pre-order traversal of the document's nodes) that match the specified group of selectors.