Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic shape (Read 2306 times)
hadni
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Jan 18th, 2011
shape
Feb 16th, 2011 at 7:10am
Print Post  
hello, i want to make an ellipse shapenode but made of dotted line style..
is it possible? thx..
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: shape
Reply #1 - Feb 16th, 2011 at 7:23am
Print Post  
Assign to node.Pen a Pen instance whose DashStyle is set to Dot.

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


I love YaBB 1G - SP1!

Posts: 10
Joined: Jan 18th, 2011
Re: shape
Reply #2 - Feb 16th, 2011 at 8:01am
Print Post  
sorry i don't understand
supposed i have

dim a as shapenode
a.Shape = Shape.FromId("Ellipse")

how to set the pen style?
  
Back to top
 
IP Logged
 
hadni
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Jan 18th, 2011
Re: shape
Reply #3 - Feb 16th, 2011 at 8:05am
Print Post  
ooh, ic..
Dim a As ShapeNode
a = Diagram2.Factory.CreateShapeNode(0, 10, 10, 10)
a.Shape = Shape.FromId("Ellipse")
a.Pen.DashStyle = DashStyle.Dash

i guess like that right?
thank you so much Grin Grin
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: shape
Reply #4 - Feb 16th, 2011 at 11:33am
Print Post  
The code above will work, but if you need to change the style in response to some event handler, you better assign a new Pen instance or otherwise it would not repaint:

a.Pen = new MindFusion.Drawing.Pen(...);
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint