Search
DiagramBase.EnterInplaceEditMode Event
See Also
 





Raised when entering inplace-edit mode.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public event EventHandler<InPlaceEditEventArgs> EnterInplaceEditMode

Visual Basic  Copy Code

Public Event EnterInplaceEditMode As EventHandler(Of InPlaceEditEventArgs)

 Event Data

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 TextBox control where the user can edit the text.

 Remarks

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.

 See Also