TextSearchOptions
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:
public class TextSearchOptions : INotifyPropertyChanged
Inheritance: objectTextSearchOptions
Implements:
Constructors
Initializes a new instance of the TextSearchOptions class.
public TextSearchOptions()
Initializes a new instance of the TextSearchOptions class.
public TextSearchOptions(bool caseSensitive, bool useRegularExpression, bool wholeWordsOnly)
Specifies whether the search should be case sensitive.
useRegularExpressionboolSpecifies whether to use regular expression pattern matching.
wholeWordsOnlyboolSpecifies whether to match whole words only.
Initializes a new instance of the TextSearchOptions class.
Initializes a new instance of the TextSearchOptions class.
public TextSearchOptions(bool caseSensitive)
The case sensitive option.
Properties
Gets or sets whether character casing must match exactly.
public bool CaseSensitive { get; set; }
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).
public static TextSearchOptions Default { get; }
The default.
Gets or sets whether the search string is treated as a regular expression pattern.
public bool UseRegularExpression { get; set; }
true if regular expression should be used for searching; otherwise, false.
Gets or sets whether matches must coincide with whole word boundaries.
public bool WholeWordsOnly { get; set; }
true if only whole words should be matched; otherwise, false.
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: