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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

To Draw the Polygon node in diagram

Thread ID:





76416 Sep 5,2008 08:00 AM UTC Sep 5,2008 08:46 AM UTC WinForms 1
Tags: Diagram
sattar shaikh
Asked On September 5, 2008 08:00 AM UTC

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

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon