Category / Section
Disabling the various functionalities of controller
1 min read
Disabling the various functionalities of controller
The methodologies given below illustrates how to disable Controller’s functionalities.
Guides:
It is used to indicate whether the Guides available in the diagram is Enabled or Not. By default its value is ‘true’.
[C#]
//To disable the guide lines diagram1.Controller.Guides.Enable = false;
[VB]
'To disable the guide lines diagram1.Controller.Guides.Enable = False
InPlaceEditing:
It is used to indicate whether the label editor for the nodes available in the diagram is enabled or not.
C#:
//To disable label editor for the nodes available in the diagram. diagram2.Controller.InPlaceEditing = false;
[VB]
'To disable label editor for the nodes available in the diagram. diagram2.Controller.InPlaceEditing = False
AllowCopyAtCtrlDrag:
It indicates whether the node clones or not, when the node is dragged while pressing the ctrl button.
[C#]
//To disable copying while dragging the node by pressing the ctrl key. diagram2.Controller.AllowCopyAtCtrlDrag = false;
[VB]
'To disable copying while dragging the node by pressing the ctrl key. diagram2.Controller.AllowCopyAtCtrlDrag = False
Gridlines:
It is used to indicate whether Gridlines available in the diagram must be enabled or not.
[C#]
//To disable Gridlines available in the diagram diagram2.Controller.View.Grid.Visible = false;
[VB]
'To disable Gridlines available in the diagram diagram2.Controller.View.Grid.Visible = False