Raised when entering inplace-edit mode.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public event EventHandler<InPlaceEditEventArgs> EnterInplaceEditMode |
Visual Basic Copy Code |
---|
Public Event EnterInplaceEditMode As EventHandler(Of InPlaceEditEventArgs) |
EnterInplaceEditMode event handlers receive an argument of type InPlaceEditEventArgs. The following InPlaceEditEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
Item | The node or table cell whose text will be edited. |
Node | The node whose text will be edited. If Item is a cell, this property returns the TableNode that contains that cell. |
EditControl | The control where the user can edit the item's content. |
By default, MindFusion.Diagramming creates a TextBox control to let users edit item's text. This event allows customizing the properties of that control, or attaching event handlers to it. A TextBox instance is created each time in-place editing starts, so it could be necessary to set its properties and register event handlers each time EnterInplaceEditMode is raised.
Note that you can use a custom control for in-place editing. This can be done by handling CreateEditControl and specifying what object should be used as an editor by assigning it to EditControl.