Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic link thickness (Read 1999 times)
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
link thickness
Jun 18th, 2012 at 5:48pm
Print Post  
Dear team,

           how to increase the link thickness when the node is selected. kindly help me.
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: link thickness
Reply #1 - Jun 18th, 2012 at 6:53pm
Print Post  
You can change the Pen property of links from NodeSelected and NodeDeselected events. Line Thickness is set through the Width property of the Pen class.

Code
Select All
private void diagram_NodeSelected(object sender, NodeEventArgs e)
{
	foreach (DiagramLink link in e.Node.GetAllLinks())
		link.Pen = new Pen(link.Pen.Color, 2);
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
madhan1
Full Member
***
Offline


FOLLOW NO ONE BUT LEARN
FROM EVERY ONE ..

Posts: 101
Location: India
Joined: Feb 17th, 2010
Re: link thickness
Reply #2 - Jun 19th, 2012 at 4:56am
Print Post  
Thanks stoyan,
  

if you want something then go and grab it
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint