Articles in this section

Disabling the various functionalities of controller

Disabling the various functionalities of the controller

The methodologies given below illustrate how to disable the 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 the label editor for the nodes available in the diagram.
diagram2.Controller.InPlaceEditing = false;

 

[VB]

'To disable the 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

Conclusion

I hope you enjoyed learning about disabling the various functionalities of the controller.

You can refer to WinForms Diagram feature tour page to learn about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WinForms Diagram example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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