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. Image for the cookie policy date

Connector - how to determine double click on label?


Is it possible to determine double click on label element on connector (http://help.syncfusion.com/cr/windows%20forms/diagram)? We want to start action on this event. How to achive this?


Best regards,


1 Reply

AA Amsath Ali M Syncfusion Team July 4, 2013 05:22 AM UTC

Hi Klaudiusz,


Thanks for using Syncfusion products.


We suggest you to use the Diagram.EventSink’s NodeDoubleClick’ event and the below code to determine whether the mouse is double clicked on label. Please refer the below code snippet to achieve your requirement.


Here is the code:


diagram1.EventSink.NodeDoubleClick += new NodeMouseEventHandler(EventSink_NodeDoubleClick);

void EventSink_NodeDoubleClick(NodeMouseEventArgs evtArgs)


            PathNode node = evtArgs.Node as PathNode;

            Syncfusion.Windows.Forms.Diagram.Label lbl = node.Labels[0];

            PointF lblPosition = node.ConvertToModelCoordinates(lbl.GetPosition());

            RectangleF lblBounds = new RectangleF(new PointF(lblPosition.X - lbl.Size.Width / 2, lblPosition.Y - lbl.Size.Height / 2), lbl.Size);

            if (lblBounds.Contains(diagram1.Controller.MouseLocation))




Please refer the below attached sample and let us know if you have any queries.



Amsath Ali. M


Live Chat Icon For mobile
Up arrow icon