J.
J.Nagarajan
Syncfusion Team
September 5, 2008 08:46 AM UTC
Hi Sattar ,
Please use the below code snippet to draw a Polygon in the diagram.
PointF[] pt ={ new Point(50, 50), new Point(100, 100), new Point(150, 50), new Point(100, 0) };
Syncfusion.Windows.Forms.Diagram.Polygon m_polygon = new Syncfusion.Windows.Forms.Diagram.Polygon(pt);
m_polygon.PinPoint = new PointF(220, 190);
this.diagram1.Model.AppendChild(m_polygon);
Please let me know if this helps.
Thanks,
Nagaraj