Table of Contents

Class FindOptions

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

How a search treats case, word boundaries and pathological patterns.

public sealed class FindOptions
Inheritance
FindOptions
Inherited Members

Constructors

FindOptions()

Properties

MatchCase

Gets or sets a value indicating whether the search is case-sensitive. Default true. Case-insensitive matching is ordinal, never culture-sensitive: a document is not searched differently because the machine running the search is Turkish.

MaxMatches

Gets or sets the maximum number of matches to return, or 0 for no limit. Default 0.

RegexTimeout

Gets or sets the maximum time one regular-expression match attempt may take. Default one second. A caller-supplied pattern is an unbounded-backtracking surface, so this is enforced, not advisory.

RunFilter

Gets or sets which runs a match may be in (Word's Find with a format, WQ-0121), or null for any: a match counts only when every run it covers passes. The caller decides what a run's formatting is (its resolved bold, its style), since that is resolved above this layer.

WholeWord

Gets or sets a value indicating whether a match must be bounded by non-word characters on both sides. Default false.