Articles in this section

Disable Diagram Feature or Functionality

Disabling the various functionalities of the diagram and its nodes

The methodologies given below illustrate how to disable diagram, model, and node functionalities.

Diagram:

Allow Drop:

It is used to indicate whether the item can be dropped in the diagram or not, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can drag and drop into the diagram
diagram.AllowDrop = false;

 

[VB]

’ Indicates whether the user can drag and drop into the diagram
diagram.AllowDrop = False

 

DefaultContextMenuEnabled:

It is used to indicate to whether the default context menu of the diagram can be shown or not, where by default it is set as ‘true’.

[C#]

// Indicates whether to show the default context menu 
diagram1.DefaultContextMenuEnabled = false;

 

[VB]

’ Indicates whether to show the default context menu
diagram1.DefaultContextMenuEnabled = False

 

ShowRulers:

It is used to indicate whether the rulers for the diagram is shown or not, where by default it is set as ‘false’.

[C#]

// Indicates whether to show rulers in the diagram
diagram1.ShowRulers = true;

 

[VB]

’ Indicates whether to show rulers in the diagram
diagram1.ShowRulers = True

 

Model:

BoundaryConstraintsEnabled:

It is used to indicate that whether the movement of objects is constrained to the model, where by default it is set as ‘true’.

[C#]

// Indicates whether the movement of objects is constrained to the model
diagram1.Model.BoundaryConstraintsEnabled = false;

 

[VB]

’ Indicates whether the movement of objects is constrained to the model
diagram1.Model.BoundaryConstraintsEnabled = False

 

EnableSelectionListSubstitute:

It is used to indicate that whether the separate selection handles can be drawn for each and every node while selecting multiple nodes or not, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can enable enhanced selection list to model
diagram1.Model.EnableSelectionListSubstitute = false;

 

[VB]

’ Indicates whether the user can enable enhanced selection list to model
diagram1.Model.EnableSelectionListSubstitute = False

 

LineBridgingEnabled:

It is used to indicate whether the user can enable line bridging for the model/connector while the connectors gets intersected, where by default it is set as ‘false’.

[C#]

// Indicates whether the user can enable line bridging for model
diagram1.Model.LineBridgingEnabled = true;

 

[VB]

’ Indicates whether the user can enable line bridging for model
diagram1.Model.LineBridgingEnabled = False

 

LineRoutingEnabled:

It is used to indicate whether the user can enable line routing for model/connector, where by default it is set as ‘false’.

[C#]

// Indicates whether the user can enable line routing for model
diagram1.Model.LineRoutingEnabled = true;

 

[VB]

’ Indicates whether the user can enable line routing for model
diagram1.Model.LineRoutingEnabled = True

 

SizeToContent:

It is used to indicate whether the models can be re-sized to fit based on its content (node and connector), where by default it is set as ‘false’.

[C#]

// Indicates whether the model’s will be sized to its content
diagram1.Model.SizeToContent = true;

 

[VB]

’ Indicates whether the model’s will be sized to its content
diagram1.Model.SizeToContent = True

 

EditStyle:

AllowChangeHeight:

It is used to indicate whether the user can able to change the height of the node at runtime, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can enable change the height of the node at runtime
process.EditStyle.AllowChangeHeight = false;

 

[VB]

’ Indicates whether the user can enable change the height of the node at runtime
process.EditStyle.AllowChangeHeight = False

 

AllowChangeWidth:

It is used to indicate whether the user can change the width of the node at runtime, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can change the width of the node at runtime
process.EditStyle.AllowChangeWidth = false;

 

[VB]

’ Indicates whether the user can change the width of the node at runtime
process.EditStyle.AllowChangeWidth = False

 

 

AllowDelete:

It is used to indicate whether the user can allow to delete a node at runtime, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can delete a node at runtime
process.EditStyle.AllowDelete = false;

 

[VB]

’ Indicates whether the user can delete a node at runtime
process.EditStyle.AllowDelete = False

 

AllowMove:

It is used to indicate whether the user can perform moving operation over the node at runtime, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can delete a node in run time
process.EditStyle.AllowMove = false;

 

[VB]

’ Indicates whether the user can delete a node in run time
process.EditStyle.AllowMove = False

 

AllowMoveX:

It is used to indicate whether the user can move the node towards x axis in runtime, where by default it is set as ‘true’.

[C#]

// Indicates whether to move the node towards x axis
process.EditStyle.AllowMoveX = false;

 

[VB]

’ Indicates whether to move the node towards x axis
process.EditStyle.AllowMoveX = False

 

AllowMoveY:

It is used to indicate whether the user can move the nodes towards y axis in runtime, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can move the node towards y axis
process.EditStyle.AllowMoveY = false;

 

[VB]

’ Indicates whether the user can move the node towards y axis
process.EditStyle.AllowMoveY = False

 

AllowResize:

It is used to indicate whether the user can resize the nodes in runtime, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can resize the nodes in runtime
process.EditStyle.AllowResize = false;

 

[VB]

’ Indicates whether the user can resize the nodes in runtime
process.EditStyle.AllowResize = False

 

AllowSelect:

It is used to indicate whether the user can select the nodes in runtime, where by default it is set as ‘true’.

[C#]

// Indicates whether the user can select the nodes in runtime
process.EditStyle.AllowSelect = false;

 

[VB]

’ Indicates whether the user can select the nodes in runtime
process.EditStyle.AllowSelect = False

 

AllowVertexEdit:

It is used to indicate whether the user can enable the vertex edit for the node, where by default it is set as ‘true’.

[C#]

// Indicate whether the user can enable the vertex edit for the node
process.EditStyle.AllowVertextEdit = false;

 

[VB]

’ Indicates whether the user can delete a node at runtime
process.EditStyle.AllowDelete = False

 

AspectRatio:

It is used to indicate whether the user can set the dimensions of the each and every nodes to be equal, where by default it is set as ‘true’.

[C#]

// Indicates whether user can set the dimensions of the each and every nodes are to be equal
process.EditStyle.AspectRatio = true;

 

[VB]

’ Indicates whether user can set the dimensions of the each and every nodes are to be equal
process.EditStyle.AspectRatio = False

 

Enabled:

It is used to indicate that whether the node is enabled, where by default it is set as ‘true’.

[C#]

// Indicates whether the node is enabled
process.EditStyle.Enabled = false;

 

[VB]

’ Indicates whether the node is enabled
process.EditStyle.Enabled = False

 

HidePinPoint:

It is used to indicate whether the user can hide the pin point of the node, where by default it is set as ‘false’.

[C#]

// Indicates whether the user can hide the pin point of the node
process.EditStyle.HidePinPoint = true;

 

[VB]

’ Indicates whether the user can hide the pin point of the node
process.EditStyle.HidePinPoint = True

 

HideRotationHandle:

It is used to indicate whether the user can hide the node’s rotation handle, where by default it is set as ‘false’.

[C#]

//indicates whether the user can hide the rotation handle for the node
process.EditStyle.HideRotationHandle = true;

 

[VB]

’indicates whether the user can hide the rotation handle for the node
process.EditStyle.HideRotationHandle = True

 

Conclusion

I hope you enjoyed learning about disabling diagram features or functionalities.

You can refer to the 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