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.
I have a TextNode with the Text property set to String.Empty. No matter what I set the X and Y coordinates to, they are reset back to zero when the Text property is String.Empty. Is this a bug or is this exprected behavior. I obviously know a work around but is there a better way to handle this?
ADAdministrator Syncfusion Team March 30, 2005 02:58 PM UTC
Hi Jamie,
How are you creating and adding this TextNode to the Diagram? I tried to reproduce the described scenario, but using the InsertNodesCmd to position the empty TextNode, and it works as expected without any problems. The following is the code that I tested with,
// Create a TextNode without any Text
TextNode txtnode = new TextNode();
txtnode.Size = new SizeF(150,50);
InsertNodesCmd inscmd = new InsertNodesCmd();
inscmd.Location = new PointF(150,50);
inscmd.Nodes.Add(txtnode);
this.diagramComponent.Controller.ExecuteCommand(inscmd);;
Have you tried using the MoveCmd to reposition the TextNode?
Thanks,
Prakash Surendra
Syncfusion Inc.,