Allows user-defined dialog boxes such as
Find/Replace, Format, Insert table, and others to be used.
Namespace:
C1.Win.XmlEditorAssembly: C1.Win.XmlEditor.2 (in C1.Win.XmlEditor.2.dll)
Syntax
| C# |
|---|
[BrowsableAttribute(false)] [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] public CustomDialogs CustomDialogs { get; } |
| Visual Basic (Declaration) |
|---|
<BrowsableAttribute(False)> _ <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _ Public ReadOnly Property CustomDialogs As CustomDialogs |
Remarks
The C1XmlEditor 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.
Examples
The code below replaces the built-in bookmark and find/replace dialogs with
customized versions of the dialogs.
Copy CodeC#
privatevoid InitCustomDialogs() { _editor.CustomDialogs.BookmarkDialog = new BookmarkEditorForm(); _editor.CustomDialogs.FindReplaceDialog = new FindReplaceForm(); } |