Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LinkBaseShape/LinkHeadShape graphics (Read 2152 times)
LGK
YaBB Newbies
*
Offline



Posts: 30
Location: Boston, MA
Joined: Mar 29th, 2012
LinkBaseShape/LinkHeadShape graphics
Jun 20th, 2012 at 3:38pm
Print Post  
Is there any web or other resource where I can see what each of the LinkBaseShape and LinkHeadShape graphics look like (so that I can pick the ones that are most suitable to me)? There are just too many of them.

Also, what would be a good way to customize them? E.g. the "Triangle" one has a aquamarine color filling - can I change that?

Thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LinkBaseShape/LinkHeadShape graphics
Reply #1 - Jun 21st, 2012 at 8:24am
Print Post  
This shows the available arrowhead shapes:

Code
Select All
float y = 10, x = 10;
foreach (Shape shape in Shape.Shapes)
{
	if (shape.IsArrowhead)
	{
		DiagramNode n1 = diagram.Factory.CreateShapeNode(x, y, 10, 10);
		DiagramNode n2 = diagram.Factory.CreateShapeNode(x + 60, y, 10, 10);
		DiagramLink link = diagram.Factory.CreateDiagramLink(n1, n2);
		link.HeadShape = shape;
		link.HeadShapeSize = 8;
		link.HeadBrush = new SolidBrush(Color.Blue);
		link.Text = shape.Id;
		y += 20;
		if (y > 120)
		{
			y = 10;
			x += 80;
		}
	}
} 



I hope that helps,
Stoyan
  

arrowheads.png (Attachment deleted)
Back to top
 
IP Logged
 
LGK
YaBB Newbies
*
Offline



Posts: 30
Location: Boston, MA
Joined: Mar 29th, 2012
Re: LinkBaseShape/LinkHeadShape graphics
Reply #2 - Jun 21st, 2012 at 3:38pm
Print Post  
Perfect! Thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint