Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Center Text Lable (Read 2279 times)
mohamed
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Jul 17th, 2018
Center Text Lable
Sep 9th, 2018 at 11:01am
Print Post  
Hi

How can i center label on the link
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Center Text Lable
Reply #1 - Sep 10th, 2018 at 10:50am
Print Post  
Hi,

Try this -

Code
Select All
var node1 = diagram.Factory.CreateShapeNode(10, 10, 10, 10);
var node2 = diagram.Factory.CreateShapeNode(70, 70, 10, 10);

var link = diagram.Factory.CreateDiagramLink(node1, node2);
var label = link.AddLabel("label");
label.SetLinkLengthPosition(0.5f); 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint