Table of Contents

Class SearchDialogWindow

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

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

public class SearchDialogWindow : Window, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDlgSeparateWindow, IDlgSearchWindow, INotifyPropertyChanged
Inheritance
SearchDialogWindow
Implements
Extension Methods

Constructors

SearchDialogWindow()

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.

CurrentTheme

Gets or sets a dictionary containing theme-related resources for the dialog window, such as combobox or button background.

FirstSearch
ImagesResourceNameSuffix
IsReplace

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

Options

Gets or sets options that defines search and replace behavior.

OptionsVisible

Indicates whether options group box should be visible.

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

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)
OnActivated(EventArgs)

Raises the Activated event.

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.

OnSourceInitialized(EventArgs)

Raises the SourceInitialized event.

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.

UpdateFindText(string)

Updates text to find.

UpdateSearch(ISearch, bool)

Updates search engine.

Events

PropertyChanged

Occurs when a property value changes.