Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom pen size for links (Read 1900 times)
feugen24
YaBB Newbies
*
Offline



Posts: 27
Joined: Sep 22nd, 2006
Custom pen size for links
May 31st, 2010 at 8:47am
Print Post  
Hi,
I'm having problems setting the thickens of the links.
If I use "diagram.LinkPen.Thickness = 6;" it works, but i need to specify it for each link
I tried: myLink.Pen.Thickness = size; before and after the link is added to diagram but it has no effect.
What could be the problem?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Custom pen size for links
Reply #1 - May 31st, 2010 at 8:54am
Print Post  
Hi,

In recent versions you should use the StrokeThickness property. The Pen property is still there but only for compatibility with our other components. Anyway you can also set the thickness through Pen by assigning a new object:

myLink.Pen = new Pen(brush, size);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
feugen24
YaBB Newbies
*
Offline



Posts: 27
Joined: Sep 22nd, 2006
Re: Custom pen size for links
Reply #2 - May 31st, 2010 at 11:17am
Print Post  
Thanks, it works
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint