|109710||Jul 1,2013 03:41 AM||Jul 4,2013 01:22 AM||Windows Forms||1|
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?
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;
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);
Please refer the below attached sample and let us know if you have any queries.
Amsath Ali. M
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.