- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.Scheduling library for HTML5 & JavaScript.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Center Text Lable
Read 297 times

mohamed   Offline
YaBB Newbies
*
Posts: 4
I Love MindFusion!


   
     
 
Center Text Lable
Sep 9th, 2018 at 12:01pm
 
Hi

How can i center label on the link
 
 
 
IP Logged    
 
     

Slavcho   Online
God Member
*****
Posts: 1568
Gender: male
tech.support


   
     
 
Re: Center Text Lable
Reply #1 - Sep 10th, 2018 at 11:50am
 
Hi,

Try this -

Code:
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
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print