Table of Contents

Class PopupPanelSearchDialogWindow

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Represents a dialog box used to provide search and replace dialog.

public class PopupPanelSearchDialogWindow : Border, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDlgSearchWindow
Inheritance
PopupPanelSearchDialogWindow
Implements
Extension Methods

Constructors

PopupPanelSearchDialogWindow()

Initializes a new instance of the SearchDialogWindow class with default settings.

Properties

AdditionalResources

Gets or sets a dictionary containing additional resources for the dialog window, such as control styles.

ClearBookmarks

Indicates whether all unnumbered bookmarks should be removed from the bookmarks collection.

FirstSearch
IsReplace

Gets or sets a boolean value that indicates whether search or replace dialog should be executed.

IsReplaceToggleButtonImage
Options

Gets or sets options that defines search and replace behavior.

Painter

Gets or sets the painter used to draw dialog's controls.

ParentEditorControl

Represents the parent control.

ReplaceList

Represents the replace history for the replace dialog.

Search

Gets or sets ISearch interface owning the dialog.

SearchList

Represents the search history for the search dialog.

SearchShared
SelectionEnabled

Gets or sets a boolean value that indicates whether search can be executed through selected text.

Methods

Close()

When implemented by a class, closes the dialog.

EnableRegularExpressions(bool)

Enables/disables regular expressions.

Find(string, SearchOptions, Regex)
FindNext()
FindPrevious()
HighlightAll()

Highlights all occurrences of the search text.

HighlightAll(string, SearchOptions, Regex)
Init()

Resets DlgSearch to the start of search.

MarkAll(string, SearchOptions, Regex, bool)
NeedReplaceCurrent(out Match)
OnPreviewKeyDown(KeyEventArgs)

Invoked when an unhandled System.Windows.Input.Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnPropertyChanged(string)
OnShown()
PainterChanged()
ReplaceAll(string, string, SearchOptions, Regex, out int)
ReplaceChanged()
ReplaceCurrent(string, SearchOptions, Match)
Show(Control, PopupPanelSearchDialogPainter)

When implemented by a class, displays the dialog with the specified parameters.

ShowNotFound()
ShowNotFound(string)
ShowRegularExpressions(bool)

Shows/hide regular expressions.

ToggleHiddenText()

Toggles searching through hidden text on/off.

ToggleMatchCase()

Toggles case sensitive searching on/off.

TogglePromptOnReplace()

Toggles prompting before replacing on/off.

ToggleRegularExpressions()

Toggles using regular expressions on/off.

ToggleSearchUp()

Toggles searching direction towards/backwards.

ToggleWholeWord()

Toggles searching for whole words on/off.

UpdateArrow(bool)
UpdateFindText(string)

Updates text to find.

UpdateSearch(ISearch, bool)

Updates search engine.

Events

Closed

When implemented by a class, occurs when the dialog control is closed.

PropertyChanged

Occurs when a property value changes.