Lock double click on diagram shape or make text changing impossible

Applies to: Nevron Diagram for .NET

How to lock double click on diagram shape or make text changing impossible?

By default, the text inside a shape can be modified. To make text changing impossible, just set the InplaceEdit protection to true, for every shape which text must not be changed:

[C#]
//Protect a shape from text changing
NAbilities protection = shape.Protection;
protection.InplaceEdit = true;
shape.Protection = protection;

[VB.NET]
'Protect a shape from text changing
Dim protection As NAbilities = shape.Protection
protection.InplaceEdit = True
shape.Protection = protection

Article ID: 24, Created On: 9/30/2010, Modified: 11/15/2010