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
Show file Open project: gilgame/SEWorkbench Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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.

Protected Methods

Method Description
OnSearchOptionsChanged ( SearchOptionsChangedEventArgs e ) : void

Raises the SearchPanel.SearchOptionsChanged event.

Private Methods

Method 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 method

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

Close() public method

Closes the SearchPanel.
public Close ( ) : void
return void

CloseAndRemove() public method

Closes the SearchPanel and removes it.
public CloseAndRemove ( ) : void
return void

FindNext() public method

Moves to the next occurrence in the file.
public FindNext ( ) : void
return void

FindPrevious() public method

Moves to the previous occurrence in the file.
public FindPrevious ( ) : void
return void

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnSearchOptionsChanged() protected method

Raises the SearchPanel.SearchOptionsChanged event.
protected OnSearchOptionsChanged ( SearchOptionsChangedEventArgs e ) : void
e SearchOptionsChangedEventArgs
return void

Open() public method

Opens the an existing search panel.
public Open ( ) : void
return void

Reactivate() public method

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

Property Details

LocalizationProperty public static property

Dependency property for Localization.
public static DependencyProperty,System.Windows LocalizationProperty
return System.Windows.DependencyProperty

MarkerBrushProperty public static property

Dependency property for MarkerBrush.
public static DependencyProperty,System.Windows MarkerBrushProperty
return System.Windows.DependencyProperty

MatchCaseProperty public static property

Dependency property for MatchCase.
public static DependencyProperty,System.Windows MatchCaseProperty
return System.Windows.DependencyProperty

SearchPatternProperty public static property

Dependency property for SearchPattern.
public static DependencyProperty,System.Windows SearchPatternProperty
return System.Windows.DependencyProperty

UseRegexProperty public static property

Dependency property for UseRegex.
public static DependencyProperty,System.Windows UseRegexProperty
return System.Windows.DependencyProperty

WholeWordsProperty public static property

Dependency property for WholeWords.
public static DependencyProperty,System.Windows WholeWordsProperty
return System.Windows.DependencyProperty