Search
DiagramView.AllowInplaceEdit Property
See Also
 






Gets or sets a value indicating whether the users can in-place edit items.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool AllowInplaceEdit { get; set; }

Visual Basic  Copy Code

Public Property AllowInplaceEdit As Boolean

 Property Value

true to show edit icon in the context menu, or false otherwise.

 Remarks

Specifies whether users are allowed to edit in-place the content of a diagram element through the Edit icon in context menu. To enter or exit in-place edit mode programmatically, call the BeginEdit and EndEdit methods of DiagramView.

By default, the Edit menu command shows an Editor control at the item's position. In-place editing mode can be exited by clicking anywhere outside the text-field. When this happens, the control raises the NodeTextEdited, LinkTextEdited or CellTextEdited event depending on the type of the edited item.

You can handle the EnterInplaceEditMode event to customize the properties of the built-in text box used as an editor, or to attach event handlers to it. Another possibility is to create a custom editor by handling CreateEditControl.

 See Also