Method FindFormatted
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
rootDomNodeThe document or subtree to search.
optionsFindOptionsThe 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.