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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Event of end drawing PolyLine

Thread ID:

Created:

Updated:

Platform:

Replies:

108838 May 15,2013 07:37 AM UTC May 22,2013 11:33 AM UTC WinForms 3
loading
Tags: Diagram
rtoulait
Asked On May 15, 2013 07:37 AM UTC

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
 
 

 


Amsath Ali M [Syncfusion]
Replied On 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

rtoulait
Replied On 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


Amsath Ali M [Syncfusion]
Replied On 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


CONFIRMATION

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.

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

;