The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

SearchFormShowingEventArgs Class

Provides data for the RichEditControl.SearchFormShowing event.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

public class SearchFormShowingEventArgs :
    FormShowingEventArgs
Public Class SearchFormShowingEventArgs
    Inherits FormShowingEventArgs

Remarks

The RichEditControl.SearchFormShowing event occurs before the Find and Replace dialog is invoked. The SearchFormShowingEventArgs class introduces the SearchFormShowingEventArgs.ControllerParameters property that specifies the information to be displayed in the dialog.

Note, that SearchFormShowingEventArgs objects are automatically created, initialized and passed to the RichEditControl.SearchFormShowing event handlers.

Examples

This example demonstrates how to replace the standard Find and Replace dialog with a custom one via the RichEditControl.SearchFormShowing event.

private void richEditControl1_SearchFormShowing(object sender, SearchFormShowingEventArgs e)
{
    string curWord = richEditControl1.Document.GetText(richEditControl1.Document.Selection);
    MySearchTextForm form = new MySearchTextForm(e.ControllerParameters, curWord);
    e.DialogResult = form.ShowDialog();
    e.Handled = true;
}

Inheritance

See Also