Table of Contents

Method FindFormatted

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

FindFormatted(DomNode, FindOptions)

Word's Find with a format and no text (WQ-0121): each longest stretch of text whose runs pass RunFilter, within one paragraph and never across what a match may not cross.

public static IReadOnlyList<TextMatch> FindFormatted(this DomNode root, FindOptions options)

Parameters

root DomNode

The document or subtree to search.

options FindOptions

The options; RunFilter is required.

Returns

IReadOnlyList<TextMatch>

The stretches, in document order.

Exceptions

ArgumentNullException

An argument is null, or the options have no run filter.