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.
Unfortunately, activation email could not send to your email. Please try again.

How to wrap the labels in the Rectange Control ?

Thread ID:

Created:

Updated:

Platform:

Replies:

72068 Feb 29,2008 08:25 AM Mar 10,2008 03:16 PM Windows Forms 3
loading
Tags: Diagram
sattar shaikh
Asked On February 29, 2008 08:25 AM

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

Administrator [Syncfusion]
Replied On March 5, 2008 04:13 PM

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 \nWorld";
m_rect.Labels.Add(lbl);

Please let me know if you have any questions.

Thanks,
Nagaraj


sattar shaikh
Replied On March 7, 2008 09:46 AM

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 \nWorld";
m_rect.Labels.Add(lbl);

Please let me know if you have any questions.

Thanks,
Nagaraj





IssueLabel.zip

Administrator [Syncfusion]
Replied On March 10, 2008 03:16 PM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;