Put Shape in V5

With the V4, I put new Shapes and place it on the diagram with the Shape.X and Shape.Y, but the Shape class is remplaced by Node and have no more X and Y property. How can I place my new shape?

2 Replies

MF Meera Fathima Syncfusion Team May 15, 2007 05:34 AM UTC


Hi Graingeot,

As with the v5.1 of Essential Diagram, Node's position is defined by PinPoint property. It is demonstrated in many of the diagram samples.

The following is the sample code snippet from the Diagram Samples/Symbol Design/Dynamic Symbol sample for your reference.

private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
//.. code snippets.
MySymbol symbol2 = new MySymbol();
symbol2.PinPoint = new PointF(200, 200);

//.. code snippets.
}

Please let me know if you have any queries regarding this.

Thanks for using Syncfusion products.

Best Regards,
Meera.


JG Julien GRAINGEOT May 15, 2007 06:58 AM UTC

It work.
Thanks.

Loader.
Up arrow icon