Search
DiagramView.CreateEditControl Event
See Also
 





Raised to let you create a custom in-place editor control.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms

 Syntax

C#  Copy Code

public event EventHandler<InPlaceEditEventArgs> CreateEditControl

Visual Basic  Copy Code

Public Event CreateEditControl As EventHandler(Of InPlaceEditEventArgs)

 Event Data

CreateEditControl event handlers receive an argument of type InPlaceEditEventArgs. The following InPlaceEditEventArgs members provide information relevant to the event.

Member name

Description

EditControl

Assign a reference to an instance of your custom editor control to this property.

Item

Refers to the diagram element being edited.

Node

Refers to the node containing the element being edited (useful when editing a table cell).

 Remarks

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.

 See Also