ASP.NET Pack Programmer's Guide
DiagramItem.setLocked Method
See Also
 





Sets a value indicating whether users are allowed to modify this item.

Namespace: MindFusion.Diagramming
Package: DiagramItem.js

 Syntax

JavaScript  Copy Code

function setLocked (value)

 Parameters

value

true to prevent users from modifying the item, otherwise false.

 Remarks

A locked item cannot be selected, moved or resized interactively. Additionally, its text cannot be edited in-place.

Locked nodes still can be moved or resized programmatically through their setBounds method. Positions of locked links' control points can be changed programmatically too - through their ControlPoints collections.

Locked items positions can be changed also by the automatic layout algorithms. To prevent automatic layout methods from changing positions of individual items, set the IgnoreLayout property of DiagramItem to false.

 See Also

DiagramItem Members
DiagramItem Class
MindFusion.Diagramming Namespace
setVisible Method