Gets or sets a value indicating whether users are allowed to edit the diagram item.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public bool Locked { get; set; } |
Visual Basic Copy Code |
---|
Public Property Locked As Boolean |
true to prevent users from editing a diagram element; otherwise, false. The default is false.
A locked item cannot be selected, moved or resized interactively. Additionaly, its text cannot be edited in-place.
Locked nodes still can be moved or resized programmatically through the Bounds property and the Move / Resize methods. Positions of locked links' control points can be changed programmatically too - through their ControlPoints collections.
Locked items positions can change also when automatic layout algorithms are applied. To prevent automatic layout methods from changing positions of individual items, set the IgnoreLayout property of DiagramItem to false.
WpfDiagram Programmer's Guide | © 2024 MindFusion |