Hi JVM,
Thanks for your interest in Syncfusion products.
The Layer.Enabled property is used to indicate whether the layer should be active or not, where by default it is set to ‘False’. We suggest you to loop through all nodes in a layer and use the Node’s ‘Editstyle's’ properties to make nodes in a layer as ‘Readonly’. Please refer the below code snippet to achieve your requirement.
[C#]
foreach (Node node in layer.Nodes)
{
node.EditStyle.AllowChangeHeight = false;
node.EditStyle.AllowChangeWidth = false;
node.EditStyle.AllowRotate = false;
node.EditStyle.AllowMoveX = false;
node.EditStyle.AllowMoveY = false;
}
For more information about Layers, please visit the below online UG link:
http://help.syncfusion.com/ug_92/User%20Interface/Windows%20Forms/Diagram/Documents/444layers.htm For your convenience, we have created a simple sample to achieve your requirement.
Please try the below sample and let us know if you have any queries.
Layer test1125834057.zipRegards,
Amsath Ali. M