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

Hi,
 
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:

[C#]

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.

 

Regards,

Amsath Ali. M



F108838_344855bf.zip


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,

Rabah TOULAÏT



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.

 

Regards,

Amsath Ali. M


Loader.
Live Chat Icon For mobile
Up arrow icon