Raised when entering inplace-edit mode.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
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 |
---|---|
The node or table cell whose text will be edited. | |
The node whose text will be edited. If Item is a cell, this property returns the TableNode that contains that cell. | |
The TextBox control where the user can edit the text. |
This event allows setting properties of the TextBox control used for in-place editing or attaching custom event handlers to that control. 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.
WpfDiagram Programmer's Guide | © 2024 MindFusion |