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. Image for the cookie policy date
close icon

Event of end drawing PolyLine

Could you tell me which event was handled at the end of polyline drawing in the diagram control using polylineTool ?
I have to do some action just after the line was drawn.
Kind regards,
Rabah Toulaït


3 Replies

AA Amsath Ali M Syncfusion Team May 20, 2013 12:00 PM UTC

Hi Rtoulait,


Thanks for your interest in Syncfusion products.


We suggest you to use the Diagram.Model.EventSink’s ‘NodeCollectionChanged/Changing’ events to achieve your requirement. Please refer the below code snippet.


Here is the code:


diagram1.Model.EventSink.NodeCollectionChanged += new CollectionExEventHandler(EventSink_NodeCollectionChanged);           

void EventSink_NodeCollectionChanged(CollectionExEventArgs evtArgs)


            if (evtArgs.ChangeType == CollectionExChangeType.Insert)


                if (evtArgs.Element is PolyLineConnector)


                    //Peform your actions





Please try the below attached sample and let us know if you have any queries.



Amsath Ali. M


RT rtoulait May 21, 2013 08:10 AM UTC

Hi Ali,

Thanks for your answer.
I used the same event and it works fine.

I have the same question for "TextTool" tool. I will open another post for that.

King regards,


AA Amsath Ali M Syncfusion Team May 22, 2013 11:33 AM UTC

Hi Toulait,


Thanks for your update.


We have updated our response for your query “Event of end typing annotation text” in your forum 108919. Could you please refer that forum for better follow up?


Please let us know if you have any queries.



Amsath Ali. M

Live Chat Icon For mobile
Up arrow icon