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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide Label Context Menu toolbar on Double Click

                     Hide Label’s Default Menu toolbar on Double Click

In Syncfusion Diagram the Node has a default property that it will displays the label editor for the node along with the labels default menu while double clicking.To disable the labels default menu for entire diagram it can be achieved by setting the diagram.Controller’s InPlaceEditing to false.

 

The following code example illustrates on how to disable the label editor for particular node.

[C#]

 

[VB]

 

To show the TextBox alone while double clicking a node a new TextBox must be created and it must be shown at the time of double click a node.

 

The below code snippet shows how to create a text node.

[C#]

 

 

[VB]

 

The below code snippet is used to Register the Nodes double click event in the diagram.

[C#]

 

 

[VB]

 

While double clicking over the node the created text box must appear. So that the label’s default menu won’t appears.

 

The below code snippet is used to render the newly created text box at the time of NodeDoubleClick.

[C#]

 

[VB]

 

The below code snippet is used to hide the newly created TextBox while clicking over the diagram.

 

[C#]

 

[VB]

 

Article ID: Published Date: Last Revised Date: Platform: Control: Product Version:
5777 11/25/2015 11/25/2015 Windows Forms Diagram 12.4.0.24
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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