EditorSearchOptions Class
Stores find/replace options for searching within a view.
public class EditorSearchOptions : ObservableObjectBase, IEditorSearchOptions, ISearchOptions, ICloneable
- Inheritance:
- object ObservableObjectBase object
- Implements:
- IEditorSearchOptions ISearchOptions ICloneable
Constructors
EditorSearchOptions()
Initializes an instance of the class.
public EditorSearchOptions()
Properties
Default
The default IEditorSearchOptions instance that is generally shared among multiple editors.
FindText
The text to find.
MatchCase
Indicates whether searches should be case sensitive.
public bool MatchCase { get; set; }
Property Value
- bool:
trueif searches should be case sensitive; otherwise,false.
MatchWholeWord
Indicates whether searches should only match whole words.
public bool MatchWholeWord { get; set; }
Property Value
- bool:
trueif searches should only match whole words; otherwise,false.
MaximumResultCount
The maximum number of results that can be found.
public int MaximumResultCount { get; set; }
Property Value
Remarks
The count must be larger than zero.
PatternProvider
The search pattern provider (normal, regular expression, wildcard, etc.).
ReplaceText
The text with which to replace (replace operations only).
Scope
An EditorSearchScope that indicates the scope in which to search.
SearchUp
Indicates whether to search backwards.
public bool SearchUp { get; set; }
Property Value
- bool:
trueif searches should be performed backwards; otherwise,false.
Methods
Clone()
Creates a new object that is a copy of the current instance.
public virtual object Clone()
Returns
- object:
A new instance of EditorSearchOptions that is a clone of the original.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Returns
- bool:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
Inherited Members
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)