We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disabling the various functionalities of controller

Platform: WinForms |
Control: Diagram |
Published Date: November 26, 2015 |
Last Revised Date: June 2, 2019
Tags: guidelines

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

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon