The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi
I am getting error while linking two symbols at runtime onlyif i have a code in diagram_ChildrenChangeComplete
E.g
protected Link CreateLink(PointF[] pts)
{
Link link = new Link(Link.Shapes.Line, pts);
link.EndPoints.LastEndPointDecorator = new EndPointDecorator(EndPointVisuals.ClosedArrow);
return link;
}
private void diagram_ChildrenChangeComplete(object sender, Syncfusion.Windows.Forms.Diagram.NodeCollectionEventArgs evtArgs)
{
string symbolFullName = evtArgs.Node.Name ;
MessageBox.Show (symbolFullName);
}
i am getting following error
"An unhandled exception of type ''System.ArgumentOutOfRangeException'' occurred in syncfusion.diagram.base.dll
Additional information: Index and length must refer to a location within the string."
if i remove this event diagram_ChildrenChangeComplete its working fine
plz help me
Regards
Rajkumar
ADAdministrator 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.,