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:
[C#]
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))
MessageBox.Show("success");
}
Please refer the below attached sample and let us know if
you have any queries.
Regards,
Amsath Ali. M
F109710_aafddf1.zip