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
close icon

Text on arrows

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

4 Replies

DM Dinesh M Syncfusion Team 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;

Regards,
Dinesh


AD Administrator Syncfusion Team November 22, 2009 11:37 PM UTC

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


AD Administrator Syncfusion Team 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;
conn.Labels.Add(reln);


appreciate your reply


DM Dinesh M Syncfusion Team 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.
http://help.syncfusion.com/support/Diagram.Web/7.3.0.20/F91511/main.htm

Regards,
Dinesh

Loader.
Live Chat Icon For mobile
Up arrow icon