Disable Diagram Feature or Functionality
Disabling the various functionalities of diagram and its nodes
The methodologies given below illustrates how to disable diagram, model and node’s 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 in runtime, where by default it is set as ‘true’.
[C#]
//indicates whether the user can enable change the height of the node in runtime process.EditStyle.AllowChangeHeight = false;
[VB]
’indicates whether the user can enable change the height of the node in runtime process.EditStyle.AllowChangeHeight = False
AllowChangeWidth:
It is used to indicate whether the user can change the width of the node in runtime, where by default it is set as ‘true’.
[C#]
//indicates whether the user can change the width of the node in runtime process.EditStyle.AllowChangeWidth = false;
[VB]
’ indicates whether the user can change the width of the node in runtime process.EditStyle.AllowChangeWidth = False
AllowDelete:
It is used to indicate whether the user can allow to delete a node in runtime, where by default it is set as ‘true’.
[C#]
//indicates whether the user can delete a node in runtime process.EditStyle.AllowDelete = false;
[VB]
’indicates whether the user can delete a node in runtime process.EditStyle.AllowDelete = False
AllowMove:
It is used to indicate whether the user can perform moving operation over the node in 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 in 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