Table of Contents

Class DlgSearch

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

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

public class DlgSearch : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IContainerControl, IFormDlgSearch, IDlgSearch, IControl, IDisposable
Inheritance
DlgSearch
Implements

Constructors

DlgSearch()

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

Fields

btClose
btFindNext
btFindOptions
btMarkAll
btPopup
btReplace
btReplaceAll
btReplacePopup
cbFindWhat
cbReplaceWith
chbMatchCase
chbMatchWholeWord
chbPromptOnReplace
chbSearchHiddenText
chbSearchUp
chbUseRegularExpressions
cmFind
laFindWhat
laLookIn
laReplaceWith
menuItem10
menuItem4
miBeginLine
miEndLine
miEscape
miOneCharInSet
miOneCharNotInSet
miOneOrMore
miOr
miSingleChar
miTag
miZeroOrMore
tbSearch

Properties

ClearBookmarks

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

FirstSearch
IsReplace

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

Options

Gets or sets options that define search and replace behavior.

OptionsVisible

Indicates whether the 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.

Methods

Dispose(bool)

Clean up any resources being used.

EnableRegularExpressions(bool)

Enables/disables regular expressions.

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

Highlights all occurrences of specified string in the text content.

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.

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.

UpdateFindText(string)

Updates text to find.

UpdateSearch(ISearch, bool)

Updates search engine.