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

Adding or deleting Diagram symbol.

Thread ID:





95828 Aug 3,2010 11:06 AM UTC Aug 9,2010 12:30 PM UTC WinForms 1
Tags: Diagram
Asked On August 3, 2010 11:06 AM UTC


how do i determine when a new symbol or shape has been added, deleted or changed from one parent to another parent in syncfusion.winforms.diagram.

please provide some example.

Thanks and regards

Varalakshmi R.S [Syncfusion]
Replied On August 9, 2010 12:30 PM UTC

Hi Venket,

Thank you for your interest in syncfusion products.

Adding, deleting or changing a new symbol or shape from one parent to another parent in syncfusion.winforms.diagram can be determine by using “NodeCollectionChanging” event which triggered when the node collection is edited. Please refer the following code snippet to achieve this.

private void Form1_Load(object sender, EventArgs e)

((DiagramViewerEventSink)diagramWeb1.EventSink).NodeCollectionChanged += new CollectionExEventHandler(Form1_NodeCollectionChanged)((DiagramViewerEventSink)diagramWeb1.EventSink).NodeCollectionChanging += new CollectionExEventHandler(Form1_NodeCollectionChanging);

RectangleF rect = new RectangleF(100, 100, 100, 100);
RichTextNode richText = new RichTextNode("", rect);
richText.Text = "Rich text box";

NodeCollection nodeStack = new NodeCollection();


private void Form1_NodeCollectionChanging(CollectionExEventArgs e)
MessageBox.Show("NodeCollectionChanging event fired");

Please refer the following documentation link to know more about NodeCollection events.

Please let us know if there are any concerns.



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