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.

To Draw the Polygon node in diagram

Thread ID:





76416 Sep 5,2008 04:00 AM Sep 5,2008 04:46 AM Windows Forms 1
Tags: Diagram
sattar shaikh
Asked On September 5, 2008 04:00 AM

please guide me how to draw the polygon node in diagram by code

Thanks and regards,

Sattar Shaikh

J.Nagarajan [Syncfusion]
Replied On September 5, 2008 04:46 AM

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);

Please let me know if this helps.



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.

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.