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

getting nodes points

Thread ID:





67648 Aug 27,2007 10:42 AM UTC Aug 27,2007 11:11 PM UTC WinForms 1
Tags: Diagram
Asked On August 27, 2007 10:42 AM UTC


I am using Syncfusion polyline tools to draw shapes, i want to be able to save the shape points in a PointF[] vector created in another class, i want to be able to update those changes each time i drag the node on the diagram.
My question is: how can i get the points of the node when it's drawed and when it's draged/droped..
Thank you a lot for your help.

Ajish [Syncfusion]
Replied On August 27, 2007 11:11 PM UTC

Hi Elie,

You can make use of the pinpoint changing event to do this, Here is the sample code for your reference,

private void MainForm_Load(object sender, EventArgs e)
((DocumentEventSink)model1.EventSink).PinPointChanging += new PinPointChangingEventHandler(MainForm_PinPointChanging);


void MainForm_PinPointChanging(PinPointChangingEventArgs evtArgs)

if (evtArgs.NodeAffected is PolylineNode)
PolylineNode node = evtArgs.NodeAffected as PolylineNode;
MessageBox.Show("PinpointChanging event is fired" + "\n" + "Node name: " + evtArgs.NodeAffected.Name.ToString());

foreach (System.Drawing.PointF p in node.GetPoints())
Console.WriteLine("("+p.X.ToString()+"," + p.Y.ToString()+")");

and here is the sample for your reference,


Kinldy take a look and let me if you need any further assistance.



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