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

The text to find.

string FindText { get; set; }

Property Value

string

MatchCase

Indicates whether searches should be case sensitive.

bool MatchCase { get; set; }

Property Value

bool:

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

MatchWholeWord

Indicates whether searches should only match whole words.

bool MatchWholeWord { get; set; }

Property Value

bool:

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

MaximumResultCount

The maximum number of results that can be found.

int MaximumResultCount { get; set; }

Property Value

int

Remarks

The count must be larger than zero.

PatternProvider

The search pattern provider (normal, regular expression, wildcard, etc.).

ISearchPatternProvider PatternProvider { get; set; }

Property Value

ISearchPatternProvider

ReplaceText

The text with which to replace (replace operations only).

string ReplaceText { get; set; }

Property Value

string

SearchUp

Indicates whether to search backwards.

bool SearchUp { get; set; }

Property Value

bool:

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

Inherited Members

Extension Methods