The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SearchOptions Enum

Lists options used for searching.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

[ComVisible(true)]
[Flags]
public enum SearchOptions
<ComVisible(True)>
<Flags>
Public Enum SearchOptions
[ComVisible(true)]
[Flags]
public enum SearchOptions
<ComVisible(True)>
<Flags>
Public Enum SearchOptions

Members

Name Description
CaseSensitive

Performs a case sensitive search. Only exact matches are found (e.g. "myString" matches "myString" but not "mystring").

None

Performs a search regardless of the case of the characters. Finds the occurrence of a string in a text. Strings will match even if the case is different (e.g. "mystring" will match "myString").

WholeWord

Search strings will only match if neither an alphabetical character nor a decimal digit occurs on either side of the string.

Remarks

The SearchOptions are specified for the SubDocument.FindAll and SubDocument.ReplaceAll methods. They are used when obtaining the ISearchResult interface via the SubDocument.StartSearch method.

The SearchOptions is a flags enumeration. Combine enumeration members with the unary OR operator to compose a complex option. For example, to perform a case-sensitive search for a whole word, use the (SearchOptions.CaseSensitive | SearchOptions.WholeWord) expression.

See Also