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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Text on arrows

Thread ID:





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

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 11:52 AM UTC

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;


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

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

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

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;

appreciate your reply

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

Hi Samson,

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

For more information please check the following sample.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon