Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor.UICustomization Namespace / CustomDialogs Class
Members Example

In This Topic
    CustomDialogs Class
    In This Topic
    Represents a set of interfaces to support user-defined dialogs.
    Object Model
    CustomDialogs Class
    Syntax
    'Declaration
     
    Public NotInheritable Class CustomDialogs 
    public sealed class CustomDialogs 
    Remarks
    To use your own dialog, implement the required interface and set the corresponding property of CustomDialogs.

    The C1.Win.C1Editor.C1Editor contains several dialogs used to perform actions such as search/replace, inserting images, tables, and so on.

    To replace one or more of the built-in dialogs with your own custom ones, follow these steps:

    1. Implement the custom dialog making sure it supports the appropriate interface (for example IFindReplaceDialog).

    2. Assign an instance of the custom dialog to the appropriate member of the CustomDialogs property.

    Example
    The code below replaces the built-in bookmark and find/replace dialogs with customized versions of the dialogs.
    private void InitCustomDialogs()
    {
      _editor.CustomDialogs.BookmarkDialog = new BookmarkEditorForm();
      _editor.CustomDialogs.FindReplaceDialog = new FindReplaceForm();
    }
    Inheritance Hierarchy

    System.Object
       C1.Win.C1Editor.UICustomization.CustomDialogs

    See Also