C# Класс ICSharpCode.AvalonEdit.Search.SearchPanel

Provides search functionality for AvalonEdit. It is displayed in the top-right corner of the TextArea.
Наследование: System.Windows.Controls.Control
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
LocalizationProperty System.Windows.DependencyProperty
MarkerBrushProperty System.Windows.DependencyProperty
MatchCaseProperty System.Windows.DependencyProperty
SearchPatternProperty System.Windows.DependencyProperty
UseRegexProperty System.Windows.DependencyProperty
WholeWordsProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
Attach ( TextArea textArea ) : void

Attaches this SearchPanel to a TextArea instance.

Close ( ) : void

Closes the SearchPanel.

CloseAndRemove ( ) : void

Closes the SearchPanel and removes it.

FindNext ( ) : void

Moves to the next occurrence in the file.

FindPrevious ( ) : void

Moves to the previous occurrence in the file.

OnApplyTemplate ( ) : void
Open ( ) : void

Opens the an existing search panel.

Reactivate ( ) : void

Reactivates the SearchPanel by setting the focus on the search box and selecting all text.

Защищенные методы

Метод Описание
OnSearchOptionsChanged ( SearchOptionsChangedEventArgs e ) : void

Raises the SearchPanel.SearchOptionsChanged event.

Приватные методы

Метод Описание
DoSearch ( bool changeSelection ) : void
MarkerBrushChangedCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SearchLayerKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
SearchPanel ( ) : System
SearchPatternChangedCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetResult ( ICSharpCode.AvalonEdit.Search.SearchResult result ) : void
UpdateSearch ( ) : void
ValidateSearchText ( ) : void
textArea_DocumentChanged ( object sender, EventArgs e ) : void
textArea_Document_TextChanged ( object sender, EventArgs e ) : void

Описание методов

Attach() публичный Метод

Attaches this SearchPanel to a TextArea instance.
public Attach ( TextArea textArea ) : void
textArea ICSharpCode.AvalonEdit.Editing.TextArea
Результат void

Close() публичный Метод

Closes the SearchPanel.
public Close ( ) : void
Результат void

CloseAndRemove() публичный Метод

Closes the SearchPanel and removes it.
public CloseAndRemove ( ) : void
Результат void

FindNext() публичный Метод

Moves to the next occurrence in the file.
public FindNext ( ) : void
Результат void

FindPrevious() публичный Метод

Moves to the previous occurrence in the file.
public FindPrevious ( ) : void
Результат void

OnApplyTemplate() публичный Метод

public OnApplyTemplate ( ) : void
Результат void

OnSearchOptionsChanged() защищенный Метод

Raises the SearchPanel.SearchOptionsChanged event.
protected OnSearchOptionsChanged ( SearchOptionsChangedEventArgs e ) : void
e SearchOptionsChangedEventArgs
Результат void

Open() публичный Метод

Opens the an existing search panel.
public Open ( ) : void
Результат void

Reactivate() публичный Метод

Reactivates the SearchPanel by setting the focus on the search box and selecting all text.
public Reactivate ( ) : void
Результат void

Описание свойств

LocalizationProperty публичное статическое свойство

Dependency property for Localization.
public static DependencyProperty,System.Windows LocalizationProperty
Результат System.Windows.DependencyProperty

MarkerBrushProperty публичное статическое свойство

Dependency property for MarkerBrush.
public static DependencyProperty,System.Windows MarkerBrushProperty
Результат System.Windows.DependencyProperty

MatchCaseProperty публичное статическое свойство

Dependency property for MatchCase.
public static DependencyProperty,System.Windows MatchCaseProperty
Результат System.Windows.DependencyProperty

SearchPatternProperty публичное статическое свойство

Dependency property for SearchPattern.
public static DependencyProperty,System.Windows SearchPatternProperty
Результат System.Windows.DependencyProperty

UseRegexProperty публичное статическое свойство

Dependency property for UseRegex.
public static DependencyProperty,System.Windows UseRegexProperty
Результат System.Windows.DependencyProperty

WholeWordsProperty публичное статическое свойство

Dependency property for WholeWords.
public static DependencyProperty,System.Windows WholeWordsProperty
Результат System.Windows.DependencyProperty