array of point

Hello

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

Thanks
John

3 Replies

RR Ramya R Syncfusion Team May 29, 2007 08:33 AM UTC

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.


JW Jonathan Weizman May 29, 2007 08:55 AM UTC

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


RR Ramya R Syncfusion Team May 29, 2007 11:49 AM UTC

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.

Loader.
Up arrow icon