Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to set Radius of Shapes.RoundRect (Read 2340 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
How to set Radius of Shapes.RoundRect
Feb 17th, 2014 at 11:09pm
Print Post  
I use Shapes.RoundRect to set outline of my shape, it can work. But how to change the radius of this round rectangle? I also try use ElementTemplate to customize the outline but the outline does not fill whole client area of my shape.

Thanks a lot
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to set Radius of Shapes.RoundRect
Reply #1 - Feb 18th, 2014 at 8:05am
Print Post  
Shapes.RoundRect's outline consists of a single RoundRectangleTemplate that has a Radius property; you can change it like this:

Code
Select All
var roundRect = (RoundRectangleTemplate)Shapes.RoundRect.Outline[0];
roundRect.Radius = 10; 



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


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Re: How to set Radius of Shapes.RoundRect
Reply #2 - Feb 18th, 2014 at 2:15pm
Print Post  
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint