AngleSharp by AngleSharp

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

.NET API 960,512 bytes

 QueryExtensions

public 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 bool Contains<T>(this T list, string[] tokens) where T : ITokenList

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

public static IHtmlCollection<IElement> GetElementsByClassName(this INodeList elements, string classNames)

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

public static IHtmlCollection<IElement> GetElementsByClassName<T>(this T elements, string classNames) where T : INodeList

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

public static IHtmlCollection<IElement> 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 IHtmlCollection<IElement> GetElementsByTagName<T>(this T elements, string tagName) where T : INodeList

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

public static IHtmlCollection<IElement> 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 IHtmlCollection<IElement> GetElementsByTagName<T>(this T elements, string namespaceUri, string localName) where T : INodeList

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 nodes, string selectorText, INode scopeNode = null)

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. Requires either a non-empty nodelist or a valid scope node.

public static IElement QuerySelector<T>(this T nodes, string selectorText, INode scopeNode = null) where T : INodeList

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. Requires either a non-empty nodelist or a valid scope node.

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

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 T QuerySelector<TNodeList, T>(this TNodeList elements, ISelector selectors) where TNodeList : INodeList

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 IElement QuerySelector<T>(this T elements, ISelector selector) where T : INodeList

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 IHtmlCollection<IElement> QuerySelectorAll(this INodeList nodes, string selectorText, INode scopeNode = null)

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. Requires either a non-empty nodelist or a valid scope node.

public static IHtmlCollection<IElement> QuerySelectorAll<T>(this T nodes, string selectorText, INode scopeNode = null) where T : INodeList

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. Requires either a non-empty nodelist or a valid scope node.

public static IHtmlCollection<IElement> 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 IHtmlCollection<IElement> QuerySelectorAll<T>(this T elements, ISelector selector) where T : INodeList

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.

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

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.