C# Class ICSharpCode.AvalonEdit.Search.SearchPanel

Provides search functionality for AvalonEdit. It is displayed in the top-right corner of the TextArea.
Inheritance: System.Windows.Controls.Control
Afficher le fichier Open project: gilgame/SEWorkbench Class Usage Examples

Méthodes publiques

Свойство Type Description
LocalizationProperty System.Windows.DependencyProperty
MarkerBrushProperty System.Windows.DependencyProperty
MatchCaseProperty System.Windows.DependencyProperty
SearchPatternProperty System.Windows.DependencyProperty
UseRegexProperty System.Windows.DependencyProperty
WholeWordsProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnSearchOptionsChanged ( SearchOptionsChangedEventArgs e ) : void

Raises the SearchPanel.SearchOptionsChanged event.

Private Methods

Méthode Description
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

Method Details

Attach() public méthode

Attaches this SearchPanel to a TextArea instance.
public Attach ( TextArea textArea ) : void
textArea ICSharpCode.AvalonEdit.Editing.TextArea
Résultat void

Close() public méthode

Closes the SearchPanel.
public Close ( ) : void
Résultat void

CloseAndRemove() public méthode

Closes the SearchPanel and removes it.
public CloseAndRemove ( ) : void
Résultat void

FindNext() public méthode

Moves to the next occurrence in the file.
public FindNext ( ) : void
Résultat void

FindPrevious() public méthode

Moves to the previous occurrence in the file.
public FindPrevious ( ) : void
Résultat void

OnApplyTemplate() public méthode

public OnApplyTemplate ( ) : void
Résultat void

OnSearchOptionsChanged() protected méthode

Raises the SearchPanel.SearchOptionsChanged event.
protected OnSearchOptionsChanged ( SearchOptionsChangedEventArgs e ) : void
e SearchOptionsChangedEventArgs
Résultat void

Open() public méthode

Opens the an existing search panel.
public Open ( ) : void
Résultat void

Reactivate() public méthode

Reactivates the SearchPanel by setting the focus on the search box and selecting all text.
public Reactivate ( ) : void
Résultat void

Property Details

LocalizationProperty public_oe static_oe property

Dependency property for Localization.
public static DependencyProperty,System.Windows LocalizationProperty
Résultat System.Windows.DependencyProperty

MarkerBrushProperty public_oe static_oe property

Dependency property for MarkerBrush.
public static DependencyProperty,System.Windows MarkerBrushProperty
Résultat System.Windows.DependencyProperty

MatchCaseProperty public_oe static_oe property

Dependency property for MatchCase.
public static DependencyProperty,System.Windows MatchCaseProperty
Résultat System.Windows.DependencyProperty

SearchPatternProperty public_oe static_oe property

Dependency property for SearchPattern.
public static DependencyProperty,System.Windows SearchPatternProperty
Résultat System.Windows.DependencyProperty

UseRegexProperty public_oe static_oe property

Dependency property for UseRegex.
public static DependencyProperty,System.Windows UseRegexProperty
Résultat System.Windows.DependencyProperty

WholeWordsProperty public_oe static_oe property

Dependency property for WholeWords.
public static DependencyProperty,System.Windows WholeWordsProperty
Résultat System.Windows.DependencyProperty