We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to wrap the labels in the Rectange Control ?

Hi,
I am currently evaluating the essential diagrams.
I amusing the controls to draw the chart in the organizations.

1)In case of long labels or text the control should able to wrap the text.
please refer the attached zip files whihc contains images, becasue we can reduce the size to show more controls in the charts.




labelIssueOne.zip

3 Replies

AD Administrator Syncfusion Team March 5, 2008 09:13 PM UTC

Hi Sattar ,

Please use the below code snippet to wrap the labels in the Rectangles.

Rectangle m_rect = new Rectangle(60, 80, 120, 60);
this.diagram.Model.AppendChild(m_rect);

Label lbl = new Label();
lbl.Position = Position.Center;
lbl.Text = "Hello World";
m_rect.Labels.Add(lbl);

Please let me know if you have any questions.

Thanks,
Nagaraj



SS sattar shaikh March 7, 2008 02:46 PM UTC

Hi,
1)I am creating symbols by serialization(custom)
2)Once symbol added in the palatte.
User can able to drag and drop on the diagam and set the properties as like labels,fonts,color etc.
3)Suppose user has dropped the symbols(rectangles) all as per his requirements to create chart/flowchart and he started to set the labels.Suppose he don't want to increase the symbol size and also he don't know text which he want to set in the label, in this case if length of text(wchih he going to set label) is sholud warp.
4)Please find the difference between the two pics.
5)How to add the polygon symbol(using serizalisation)in the palette


Thanks and Regards,
Sattar Shaikh




>Hi Sattar ,

Please use the below code snippet to wrap the labels in the Rectangles.

Rectangle m_rect = new Rectangle(60, 80, 120, 60);
this.diagram.Model.AppendChild(m_rect);

Label lbl = new Label();
lbl.Position = Position.Center;
lbl.Text = "Hello World";
m_rect.Labels.Add(lbl);

Please let me know if you have any questions.

Thanks,
Nagaraj





IssueLabel.zip


AD Administrator Syncfusion Team March 10, 2008 07:16 PM UTC

Hi Sattar ,

Feature: Need property to adjust label contents within the symbol

I regret to let you know that currently we do not provide support for this feature in our code library. We have notified our development team on this regard and will get back to you once we hear back from them.

Regards,
Nagaraj


Loader.
Live Chat Icon For mobile
Up arrow icon