Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • 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.

ShowFormEventArgs Class

Serves as the base for classes which provide data for the events which occur before the RichEditControl dialogs are shown.

Namespace: DevExpress.XtraRichEdit

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

Declaration

public class ShowFormEventArgs :
    EventArgs

Remarks

Events which use the ShowFormEventArgs class descendants occur before different RichEditControl dialogs are invoked. The ShowFormEventArgs class introduces the ShowFormEventArgs.DialogResult property, that specifies the return value of a dialog, the ShowFormEventArgs.Handled property that specifies whether an event was handled and the ShowFormEventArgs.Parent property that specifies a parent of the form being shown.

Example

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;
}
See Also