In This Article

ISearchOptions Interface

Provides the base requirements for a class that stores options for a find/replace operation.

public interface ISearchOptions : ICloneable

Properties

FindText

Gets or sets the text to find.

string FindText { get; set; }

Property Value

String:

The text to find.

MatchCase

Gets or sets whether searches should be case sensitive.

bool MatchCase { get; set; }

Property Value

Boolean:

true if searches should be case sensitive; otherwise, false.

MatchWholeWord

Gets or sets whether searches should only match whole words.

bool MatchWholeWord { get; set; }

Property Value

Boolean:

true if searches should only match whole words; otherwise, false.

MaximumResultCount

Gets or sets the maximum number of results that can be found.

int MaximumResultCount { get; set; }

Property Value

Int32:

The maximum number of results that can be found.

Remarks

The count must be larger than zero.

PatternProvider

Gets or sets the search pattern provider (normal, regular expression, wildcard, etc.).

ISearchPatternProvider PatternProvider { get; set; }

Property Value

ISearchPatternProvider:

A ISearchPatternProvider specifying the search pattern provider.

ReplaceText

Gets or sets the text with which to replace (replace operations only).

string ReplaceText { get; set; }

Property Value

String:

The text with which to replace.

SearchUp

Gets or sets whether to search backwards.

bool SearchUp { get; set; }

Property Value

Boolean:

true if searches should be performed backwards; otherwise, false.

Inherited Members