How To Protect Links From User Selection / Manipulation

16 Dec 20241 minute to read

You can protect links from user selection / manipulation by making use of the EditStyle class. By setting the Enabled property of the EditStyle class to false, you can disable the selection of a node link.

//Creating Line connector.

LineConnector conn = new LineConnector(new PointF(1, 1), new PointF(2, 2));

//Disabling selection of the line connector.

conn.EditStyle.Enabled = false;
'Creating Line connector.

Dim conn As LineConnector = New LineConnector(New PointF(1, 1), New PointF(2, 2))

'Disabling selection of the line connector.

conn.EditStyle.Enabled = False