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.

array of point

Thread ID:

Created:

Updated:

Platform:

Replies:

61516 May 28,2007 09:14 AM May 29,2007 07:49 AM Windows Forms 3
loading
Tags: Diagram
Jonathan Weizman
Asked On May 28, 2007 09:14 AM

Hello

How can i add a node which is an array of Point ?

Thanks
John

Ramya R [Syncfusion]
Replied On May 29, 2007 04:33 AM

Hi John,

Thank you for your interest in Syncfusion Products.

Could you please provide me with some more information with regard to your requirement, so that it would help us in meeting your requirement exactly?

Thanks,
Ramya.

Jonathan Weizman
Replied On May 29, 2007 04:55 AM

Actually, i have a "free hand" drawing which is an array of points.
It is not polygon nor some lines...

If i were under GDI i would have created a GraphicsPath object.
In Diagram, what is the corresponding object i have to instantiate ?
Thanks

Ramya R [Syncfusion]
Replied On May 29, 2007 07:49 AM

Hi John,

Thank you for the update.

GraphicsPath is a series of curves and lines.
So if your intention is to create a node consisting of several lines and curves using the array of points you have then it can be done by customizing the Group Class and creating a node consisting of several lines ,curves etc...

Kindly take a look at the attached sample.

In this sample, the Group class is customized and several closedcurve and line nodes are appended to form a group in this custom class. Then this group is appended to the DiagramModel under the form load event.

You can download the sample from the webpage link given below,
http://websamples.syncfusion.com/samples/Diagram.Windows/F61516/main.htm

Let me know whether this helps you.

Thanks & Regards,
Ramya.

CONFIRMATION

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.

;