Class DlgSearch
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
Properties
- ClearBookmarks
Indicates whether all unnumbered bookmarks should be removed from the bookmark collection.
- 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.
- 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.
- HighlightAll()
Highlights all occurrences of specified string in the text content.
- Init()
Resets
DlgSearch
to the start of search.
- Init(ISearch, SearchOptions)
Resets
NewIDlgSearch
to the start of search.ISearch
object that performs search. New search options.
- OnFontChanged(EventArgs)
Raises the FontChanged event.
- OnLoad(EventArgs)
Raises the Load event.
- ProcessCmdKey(ref Message, Keys)
Processes a command key.
- Show(IControl)
Displays the dialog with the specified parent control.
- 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.