Search Results for

    Show / Hide Table of Contents

    Class HtmlNodeExtensions

    Extension methods for finding elements within with IEnumerable<HtmlNode>

    Inheritance
    System.Object
    HtmlNodeExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: IronWebScraper
    Assembly: IronWebScraper.dll
    Syntax
    public static class HtmlNodeExtensions

    Methods

    ContainingText(IEnumerable<HtmlNode>, String)

    Returns all HtmlNodes in the collection that contain the search text.

    Declaration
    public static IEnumerable<HtmlNode> ContainingText(this IEnumerable<HtmlNode> nodes, string search)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<HtmlNode> nodes

    The nodes.

    System.String search

    The search string.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<HtmlNode>

    ContainingTextCaseInsensitive(IEnumerable<HtmlNode>, String)

    Returns all HtmlNodes in the collection that contain the search text. Case Insensitive.

    Declaration
    public static IEnumerable<HtmlNode> ContainingTextCaseInsensitive(this IEnumerable<HtmlNode> nodes, string search)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<HtmlNode> nodes

    The nodes.

    System.String search

    The search string.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<HtmlNode>

    CSS(IEnumerable<HtmlNode>, String)

    Searched multiple HtmlNodes for the given CSS Selector, and returns all distinct matches.

    Declaration
    public static HtmlNode[] CSS(this IEnumerable<HtmlNode> nodes, string selector)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<HtmlNode> nodes

    HtmlNodes to search

    System.String selector

    A CSS query selector

    Returns
    Type Description
    HtmlNode[]
    ☀
    ☾
    In This Article
    Back to top
    Install with Nuget