New to Telerik UI for WinFormsStart a free 30-day trial

Encapsulates configuration controlling text search behavior (case sensitivity, regex usage, and whole-word matching).

Definition

Namespace:Telerik.Windows.Documents.Fixed.Search

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class TextSearchOptions : INotifyPropertyChanged

Inheritance: objectTextSearchOptions

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the TextSearchOptions class.

C#
public TextSearchOptions()

Initializes a new instance of the TextSearchOptions class.

C#
public TextSearchOptions(bool caseSensitive, bool useRegularExpression, bool wholeWordsOnly)
Parameters:caseSensitivebool

Specifies whether the search should be case sensitive.

useRegularExpressionbool

Specifies whether to use regular expression pattern matching.

wholeWordsOnlybool

Specifies whether to match whole words only.

Initializes a new instance of the TextSearchOptions class.

C#
public TextSearchOptions(bool caseSensitive, bool useRegularExpression)
Parameters:caseSensitivebool

Specifies whether the search should be case sensitive.

useRegularExpressionbool

Specifies whether to use regular expression pattern matching.

Initializes a new instance of the TextSearchOptions class.

C#
public TextSearchOptions(bool caseSensitive)
Parameters:caseSensitivebool

The case sensitive option.

Properties

Gets or sets whether character casing must match exactly.

C#
public bool CaseSensitive { get; set; }
Property Value:

true if the search should be case sensitive; otherwise, false.

Gets a new instance with all options disabled (case-insensitive, literal matching, partial words allowed).

C#
public static TextSearchOptions Default { get; }
Property Value:

The default.

Gets or sets whether the search string is treated as a regular expression pattern.

C#
public bool UseRegularExpression { get; set; }
Property Value:

true if regular expression should be used for searching; otherwise, false.

Gets or sets whether matches must coincide with whole word boundaries.

C#
public bool WholeWordsOnly { get; set; }
Property Value:

true if only whole words should be matched; otherwise, false.

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged