Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Shape node border colour (Read 3165 times)
russell
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Feb 17th, 2012
Shape node border colour
Feb 17th, 2012 at 10:58am
Print Post  
Hi

Can you tell me how to change the colour of the border for a rectangular shape node?  Ideally I want a red border to highlight a problem to the user.  Code is as below.


                        linkNode.Shape = MindFusion.Diagramming.Shape.FromId("Rectangle");
                        linkNode.Bounds = new RectangleF(0, 0, 65, 10);
                        linkNode.Brush = new MindFusion.Drawing.SolidBrush(Color.White);

Thanks

Russell
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Shape node border colour
Reply #1 - Feb 17th, 2012 at 11:03am
Print Post  
Hi,

linkNode.Pen = new MindFusion.Drawing.Pen(Color.Red);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint