Table of Contents

Method FindText

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

FindText(DomNode, string, FindOptions?)

Finds every occurrence of a literal string.

public static IReadOnlyList<TextMatch> FindText(this DomNode root, string text, FindOptions? options = null)

Parameters

root DomNode

The document or subtree to search.

text string

The text to find. An empty string matches nothing.

options FindOptions

The search options, or null for the defaults.

Returns

IReadOnlyList<TextMatch>

The matches, in document order.

Exceptions

ArgumentNullException

An argument is null.