Raised to let you create a custom in-place editor control.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public event EventHandler<InPlaceEditEventArgs> CreateEditControl |
Visual Basic Copy Code |
---|
Public Event CreateEditControl As EventHandler(Of InPlaceEditEventArgs) |
CreateEditControl event handlers receive an argument of type InPlaceEditEventArgs. The following InPlaceEditEventArgs members provide information relevant to the event.
Member name | Description |
---|---|
Assign a reference to an instance of your custom editor control to this property. | |
Refers to the diagram element being edited. | |
Refers to the node containing the element being edited (useful when editing a table cell). |
This event is raised if AllowInplaceEdit is enabled and the user double-clicks an item, or when the application invokes the BeginEdit method of DiagramView. If the event is not handled, or if EditControl is set to null, MindFusion.Diagramming uses a TextBox control to allow editing the item's text. If you prefer to use the built-in TextBox, you can still customize it by handling the EnterInplaceEditMode event.
Note that if you create a custom editor control, you must transfer the values entered into it to the respective properties of the edited diagram item. You could do that in response to the DestroyEditControl event.