Method FindText
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
rootDomNodeThe document or subtree to search.
textstringThe text to find. An empty string matches nothing.
optionsFindOptionsThe search options, or null for the defaults.
Returns
- IReadOnlyList<TextMatch>
The matches, in document order.
Exceptions
- ArgumentNullException
An argument is null.