Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how can I get the color of brush property of conta (Read 2441 times)
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
how can I get the color of brush property of conta
Apr 12th, 2009 at 10:00am
Print Post  
I want to get the color of brush of container node but

public MindFusion.Drawing.Brush Brush { get; set; }


I could not find a refresnce for MindFusion.Drawing

so I can not get any property of the brush
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how can I get the color of brush property of c
Reply #1 - Apr 12th, 2009 at 11:40am
Print Post  
You should add a reference to mindfusion.common.dll, or if you mean you can't find the API help reference, it's here:
http://www.mindfusion.eu/onlinehelp/netdiagram/index.htm?CC_refMindFusion_Drawin...

Getting the color should look like:
Code
Select All
using MindFusion.Drawing;
...
SolidBrush brush = node.Brush as SolidBrush;
Color color = Color.White;
if (brush != null)
	color = brush.Color;
 



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


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: how can I get the color of brush property of c
Reply #2 - Apr 12th, 2009 at 12:27pm
Print Post  
I could not user
using MindFusion.Drawing;


it is in wich DLL?

Error1The type or namespace name 'Drawing' does not exist in the namespace 'MindFusion' (are you missing an assembly reference?)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how can I get the color of brush property of c
Reply #3 - Apr 13th, 2009 at 8:26am
Print Post  
It's in MindFusion.Common.dll.
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: how can I get the color of brush property of c
Reply #4 - Apr 13th, 2009 at 8:28am
Print Post  
thank,
it works now
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint