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.

Text on arrows

Thread ID:

Created:

Updated:

Platform:

Replies:

91479 Nov 19,2009 06:55 PM Nov 24,2009 01:44 PM ASP.NET Web Forms (Classic) 4
loading
Tags: DiagramWebControl
Administrator [Syncfusion]
Asked On November 19, 2009 06:55 PM

Hi again,
I added some text on arrows in my radial layout that gives me the relationship but somehow the text comes right over the arrow, hence the text is not as readable, is there any way of altering the position of the text above the arrow?

or alternately then i can have a different style of arrow with text inside it.

thanks in advance

Dinesh M [Syncfusion]
Replied On November 20, 2009 06:52 AM

Hi Samson,

Please use the following code to alter the position of label.

Syncfusion.Windows.Forms.Diagram.Label lbl = new Syncfusion.Windows.Forms.Diagram.Label();
lbl.Position = Position.TopCenter;

Regards,
Dinesh

Administrator [Syncfusion]
Replied On November 22, 2009 06:37 PM

hi dinesh,
this does not work.
the text still overlaps the arrow

Administrator [Syncfusion]
Replied On November 22, 2009 06:51 PM

this is how i add labels,

// create connector
LineConnector conn = new LineConnector(new PointF(1, 1), new PointF(2, 2));

// add lable
Syncfusion.Windows.Forms.Diagram.Label reln = new Syncfusion.Windows.Forms.Diagram.Label();
reln.Position = Position.BottomCenter;
reln.Text = relation;
conn.Labels.Add(reln);


appreciate your reply

Dinesh M [Syncfusion]
Replied On November 24, 2009 01:44 PM

Hi Samson,

Please check the rendering of label after setting its "UpdatePostion" property to true.

For more information please check the following sample.
http://help.syncfusion.com/support/Diagram.Web/7.3.0.20/F91511/main.htm

Regards,
Dinesh

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.

;