Hi Johnathan,
Thanks for using Syncfusion products.
Currently, we don’t have support for ‘Wrapping the text of label'. This has been already confirmed as a Feature Request. For this, please create a DT incident for your query so that we can update the status or patch for the feature.
You can create the DT incident from the following link.
http://www.syncfusion.com/account/dashboardIn the interests of maintaining confidentiality, we have a policy of not sharing patches or otherwise proprietary customer specific information in the public Forum.
In the meanwhile, you can use the ‘TextNode’ instead of ‘Label’ inside a node and then grouped it together. Since the label has some limitations in terms of usage of its properties, TextNode was implemented considering to overcome these limitations and also we have 'WrapText' property for TextNode.
Please refer the below code snippet:
[C#]
Syncfusion.Windows.Forms.Diagram.Rectangle rect1 = new Syncfusion.Windows.Forms.Diagram.Rectangle(300, 100, 90, 50);
Syncfusion.Windows.Forms.Diagram.TextNode tnode = new TextNode('This is an example for TextNode in Rectangle', new RectangleF(20, 0, 50, 50));
tnode.WrapText = true;
tnode.LineStyle.LineColor = Color.Transparent;
tnode.HorizontalAlignment = StringAlignment.Center;
tnode.VerticalAlignment = StringAlignment.Center;
//group the textnode and rectangle
Group grp = new Group();
grp.AppendChild(rect1);
grp.AppendChild(tnode);
diagram1.Model.AppendChild(grp);
For your convenience, we have created a simple sample to achieve your requirement.
Please try the below sample and let us know if you have any queries.
INc 85456- Text wrap-73969985.zipRegards,
Amsath Ali. M