Class FrmFindDialog
Represents a class that helps to find the text in EditControl by using the FrmFindDialog.
Implements
Namespace: Syncfusion.Windows.Forms.Edit.Dialogs
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class FrmFindDialog : Form, IFindDialogForm
Constructors
FrmFindDialog()
Initializes a new instance of the FrmFindDialog class.
Declaration
public FrmFindDialog()
FrmFindDialog(EditControl)
Initializes a new instance of the FrmFindDialog class.
Declaration
public FrmFindDialog(EditControl edtControl)
Parameters
Type | Name | Description |
---|---|---|
EditControl | edtControl |
FrmFindDialog(StreamEditControl)
Initializes a new instance of the FrmFindDialog class.
Declaration
public FrmFindDialog(StreamEditControl parent)
Parameters
Type | Name | Description |
---|---|---|
StreamEditControl | parent | Instance of control class. |
Fields
btnClose
Defines a new Button
Declaration
protected ButtonAdv btnClose
Field Value
Type |
---|
ButtonAdv |
btnFind
Defines a new Button
Declaration
protected ButtonAdv btnFind
Field Value
Type |
---|
ButtonAdv |
btnMarkAll
Defines a new Button
Declaration
protected ButtonAdv btnMarkAll
Field Value
Type |
---|
ButtonAdv |
btnTempaltes
Defines a new Button
Declaration
protected ButtonAdv btnTempaltes
Field Value
Type |
---|
ButtonAdv |
chkCase
Defines a new Checkbox
Declaration
protected CheckBoxAdv chkCase
Field Value
Type |
---|
CheckBoxAdv |
chkHidden
Defines a new CheckBox
Declaration
protected CheckBoxAdv chkHidden
Field Value
Type |
---|
CheckBoxAdv |
chkRegular
Defines a new CheckBox
Declaration
protected CheckBoxAdv chkRegular
Field Value
Type |
---|
CheckBoxAdv |
chkUp
Defines a new CheckBox
Declaration
protected CheckBoxAdv chkUp
Field Value
Type |
---|
CheckBoxAdv |
chkWholeWord
Defines a new CheckBox
Declaration
protected CheckBoxAdv chkWholeWord
Field Value
Type |
---|
CheckBoxAdv |
chkWrap
Defines a new CheckBox
Declaration
protected CheckBoxAdv chkWrap
Field Value
Type |
---|
CheckBoxAdv |
cmbFind
Defines a new Combobox
Declaration
protected ComboBoxAdv cmbFind
Field Value
Type |
---|
ComboBoxAdv |
cmnTemplates
Defines a new Contextmenu
Declaration
protected ContextMenu cmnTemplates
Field Value
Type |
---|
System.Windows.Forms.ContextMenu |
DEF_REGEXP
Regexp symbols for inserting in text searching field.
Declaration
protected readonly string[] DEF_REGEXP
Field Value
Type |
---|
System.String[] |
groupBox1
Defines a new Groupbox
Declaration
protected GradientPanel groupBox1
Field Value
Type |
---|
GradientPanel |
lblFind
Defines a new Label
Declaration
protected Label lblFind
Field Value
Type |
---|
System.Windows.Forms.Label |
m_activeCombo
Instance on active comboBox.
Declaration
protected ComboBoxAdv m_activeCombo
Field Value
Type |
---|
ComboBoxAdv |
m_attributes
Indicates features for searching.
Declaration
protected SearchAttributes m_attributes
Field Value
Type |
---|
SearchAttributes |
m_bIndexChaged
Indicates if we must change history because selected index in combobox has been changed.
Declaration
protected bool m_bIndexChaged
Field Value
Type |
---|
System.Boolean |
m_bInSelection
Indicates if search in selected text.
Declaration
protected bool m_bInSelection
Field Value
Type |
---|
System.Boolean |
m_control
Control instance.
Declaration
protected StreamEditControl m_control
Field Value
Type |
---|
StreamEditControl |
m_searchType
Type of searching.
Declaration
protected SearchType m_searchType
Field Value
Type |
---|
SearchType |
rdbDocument
Defines a new Radiobutton
Declaration
protected RadioButtonAdv rdbDocument
Field Value
Type |
---|
RadioButtonAdv |
rdbSelection
Defines a new Radiobutton
Declaration
protected RadioButtonAdv rdbSelection
Field Value
Type |
---|
RadioButtonAdv |
Properties
History
Gets the collection of searched text.
Declaration
public ArrayList History { get; }
Property Value
Type |
---|
System.Collections.ArrayList |
SearchText
Gets or sets the searching text.
Declaration
public string SearchText { get; set; }
Property Value
Type |
---|
System.String |
Methods
CreateAccessibilityInstance()
New instance for find dialog accessible object.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type | Description |
---|---|
System.Windows.Forms.AccessibleObject | FindDialogAccessibility |
CreateSearchRegex()
Creates regular expression object that can be used for search.
Declaration
public Regex CreateSearchRegex()
Returns
Type | Description |
---|---|
System.Text.RegularExpressions.Regex | Regular expression object or null if there is no sufficient information for search. |
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | True to release both managed and unmanaged resources; false to release only unmanaged resources. |
EnableDoubleBuffering()
Enables double buffering for the form thats helps to renderer all paint operations to a memory buffer instead of the drawing surface on the screen.
Declaration
public virtual void EnableDoubleBuffering()
FindNext()
Continues a search that was begun with the Find method.
Declaration
public virtual FindNextResult FindNext()
Returns
Type | Description |
---|---|
FindNextResult | Find result. |
GetActiveComboBox()
Returns ComboBox for data inserting.
Declaration
protected virtual ComboBoxAdv GetActiveComboBox()
Returns
Type | Description |
---|---|
ComboBoxAdv | Active ComboBox. |
MarkAll()
Marks all the found text in document.
Declaration
public void MarkAll()
OnActivated(EventArgs)
Overriden. Raises when dialog is shown.
Declaration
protected override void OnActivated(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The EventArgs. |
OnClosing(CancelEventArgs)
Overriden. Hides dialog.
Declaration
protected override void OnClosing(CancelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.CancelEventArgs | e | The CancelEventArgs. |
OnFindComplete(FrmFindDialog.FindCompleteEventArgs)
Fired on OnFindComplete
Declaration
protected virtual void OnFindComplete(FrmFindDialog.FindCompleteEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FrmFindDialog.FindCompleteEventArgs | e | FindCompleteEvent Args |
OnLoad(EventArgs)
Overriden. Invokes when dialog shows first time.
Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The EventArgs. |
RaiseOnFound(FindResult, FindNextResult)
Returns the result of Find next result
Declaration
protected virtual FindNextResult RaiseOnFound(FindResult findResult, FindNextResult findNextResult)
Parameters
Type | Name | Description |
---|---|---|
FindResult | findResult | |
FindNextResult | findNextResult |
Returns
Type |
---|
FindNextResult |
Regexp_Insert(Object, EventArgs)
Inserts Regexp template to combo box.
Declaration
protected void Regexp_Insert(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The Sender. |
System.EventArgs | e | The EventArgs. |
SelectTextAndFocus()
Selects the text in find combo box and focuses it.
Declaration
public void SelectTextAndFocus()
ToggleButtons()
Enables or disables Regexp button.
Declaration
protected virtual void ToggleButtons()
ToggleElementsEnable()
Disables or enables elements which depends from searching text.
Declaration
protected virtual void ToggleElementsEnable()
Events
FindComplete
Occurs when find completed the specified text
Declaration
public event EventHandler<FrmFindDialog.FindCompleteEventArgs> FindComplete
Event Type
Type |
---|
System.EventHandler<FrmFindDialog.FindCompleteEventArgs> |
Found
Occurs when FindNext founds the search text.
Declaration
public event EventHandler<FrmFindDialog.FindNextEventArgs> Found
Event Type
Type |
---|
System.EventHandler<FrmFindDialog.FindNextEventArgs> |
Explicit Interface Implementations
IFindDialogForm.Show()
Declaration
void IFindDialogForm.Show()