Articles in this section

How do I prevent the nodes from being rotated?

Prevent Node rotation

This can be done by raising the Diagram.Model.EventSink.RotationChanging event and cancelling the operation.

Below is the sample code snippet for your reference.

C#

this.diagram1.Model.EventSink.RotationChanging += new RotationChangingEventHandler(EventSink_RotationChanging);
void EventSink_RotationChanging(RotationChangingEventArgs evtArgs)
{
evtArgs.Cancel = true;
}
 

 

VB

Me.diagram1.Model.EventSink.RotationChanging += New RotationChangingEventHandler(EventSink_RotationChanging)
Private Sub EventSink_RotationChanging(ByVal evtArgs As RotationChangingEventArgs)
evtArgs.Cancel = True
End Sub
 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied