AD
Administrator
Syncfusion Team
April 20, 2008 05:24 PM UTC
Hi Aravindan,
Thank you for using Syncfusion prducts.
If you want to display the Textfield in a diagram object, then you can use its label collection to add label. The following code snippet illustrates this.
[C#]
Syncfusion.Windows.Forms.Diagram.Rectangle rec=new Syncfusion.Windows.Forms.Diagram.Rectangle(40,40,40,40);
Syncfusion.Windows.Forms.Diagram.Label l= new Syncfusion.Windows.Forms.Diagram.Label();
l.Text="Rectangle";
//Add label to the rectangle
rec.Labels.Add(l);
this.diagram1.Model.AppendChild(rec);
If you want to save the entire diagram into a database , then you can achieve this by saving the diagram (edd format) using the diagram.SaveSoap/SaveBinary and diagram.LoadSoap/LoadBinary methods and finally save that edd file in bytes into the database.
Please provide me more information if I misunderstood your requirement.
Regards,
Jaya