Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to Rotate the Default shapenode? (Read 2014 times)
heyx
Junior Member
**
Offline


I Love MindFusion!

Posts: 69
Joined: Oct 9th, 2014
How to Rotate the Default shapenode?
Apr 1st, 2015 at 3:08am
Print Post  
hi,
I crate a Default ShapeNode use this code and I set it's RotationAngle = 90.but the node don't rotate.
Code
Select All
            ShapeNode shapeNode = new ShapeNode();
            shapeNode.Shape = Shapes.Rectangle;
            shapeNode.Text = "AAAAA";
            shapeNode.TextAlignment= TextAlignment.Center;
            shapeNode.TextVerticalAlignment= AlignmentY.Center;
            shapeNode.RotationAngle = 90;
            shapeNode.Bounds = new Rect(new Point(20,20),new Size(96,96));
            Diagram.Nodes.Add(shapeNode);
 


could you please give me some help ?
thanks.
  

NodeRotate.rar ( 25 KB | 63 Downloads )
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to Rotate the Default shapenode?
Reply #1 - Apr 1st, 2015 at 7:29am
Print Post  
Hi,

The shape rotates but you wouldn't notice when width and height are equal. I suppose you need the text to rotate too, set shapeNode.RotateText = true to enable that.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
heyx
Junior Member
**
Offline


I Love MindFusion!

Posts: 69
Joined: Oct 9th, 2014
Re: How to Rotate the Default shapenode?
Reply #2 - Apr 13th, 2015 at 2:13am
Print Post  
hi Stoyan,
   Thanks for your help, It Works.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint