- Welcome, Guest. Please Login or Register
MindFusion  
  We are soon releasing MindFusion.JavaScript pack. Initial version includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are the beta version and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Center Text Lable
Read 520 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   Offline
God Member
*****
Posts: 1702
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