Table of Contents

Class PopupPanelDlgSearch

Namespace
Alternet.Editor.Dialogs
Assembly
Alternet.Editor.v9.dll

Represents a windows form used to provide search and replace dialog.

public class PopupPanelDlgSearch : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IContainerControl, IDlgSearch, IControl, IDisposable, IVsControlResourceProvider
Inheritance
PopupPanelDlgSearch
Implements

Constructors

PopupPanelDlgSearch()

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

Fields

btFindNext
btReplace
btReplaceAll
cbFindWhat
cbReplaceWith
chbMatchCase
chbMatchWholeWord
chbUseRegularExpressions

Properties

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.

Options

Gets or sets options that defines search and replace behavior.

OptionsVisible

Indicates whether options group box should be visible.

Painter

When implemented by a class, gets or sets painter object associated with this dialog

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.

Width

When implemented by a class, gets or sets the width of the control.

Methods

Close()

Closes the dialog.

Dispose(bool)

Clean up any resources being used.

EnableRegularExpressions(bool)

Enables/disables regular expressions.

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

Highlights all occurrences of the search text.

HighlightAll(string, SearchOptions, Regex)
Init()

Resets DlgSearch to the start of search.

Init(ISearch, SearchOptions)

Resets IDlgSearch to the start of search.

New ISearch object that performs search. New search options.
MarkAll(string, SearchOptions, Regex, bool)
NeedReplaceCurrent(out Match)
OnFontChanged(EventArgs)

Raises the FontChanged event.

OnLoad(EventArgs)

Raises the Load event.

OnSizeChanged(EventArgs)

Raises the SizeChanged event.

ProcessCmdKey(ref Message, Keys)

Processes a command key.

ReplaceAll(string, string, SearchOptions, Regex, out int)
ReplaceChanged()
ReplaceCurrent(string, SearchOptions, Match)
Show(IControl)

Displays the dialog with the specified parent control.

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

Occurs when the dialog is closed.