AD
Administrator
Syncfusion Team
December 21, 2005 07:29 PM UTC
Hi Rajkumar,
You might want to make sure that the ChildrenChangeComplete event''s NodeCollectionEventArgs.Node parameter is valid, and has a non-Null Name value. Restricting the handler for node additions by examining the value of the NodeCollectionEventArgs.ChangeType param will help avoid such exceptions. The following code should give you an idea,
private void diagramComponent_ChildrenChangeComplete(object sender, Syncfusion.Windows.Forms.Diagram.NodeCollectionEventArgs evtArgs)
{
if(evtArgs.ChangeType == CollectionExChangeType.Insert)
{
foreach(INode node in evtArgs.Nodes)
Trace.WriteLine(node.Name);
}
}
Prakash Surendra
Syncfusion Inc.,