Gets or sets a value indicating whether in-place editing of the text of objects is enabled.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public bool AllowInplaceEdit { get; set; } |
Visual Basic Copy Code |
---|
Public Property AllowInplaceEdit As Boolean |
true if in-place editing is allowed, or false otherwise. The default is false.
Specifies whether users are allowed to edit in-place the content of a diagram element by double-clicking it. To enter or exit in-place edit mode programmatically, use the BeginEdit and EndEdit methods of DiagramView.
By default, when an item is double-clicked, a text-entry field appears 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.
WpfDiagram Programmer's Guide | © 2024 MindFusion |