Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to make top of Arrow text's zorder? (Read 1118 times)
bemorem
YaBB Newbies
*
Offline


MacPro Xeon Quad

Posts: 44
Joined: May 3rd, 2007
How to make top of Arrow text's zorder?
Apr 9th, 2009 at 9:03am
Print Post  
How to make top of Arrow text's zorder?

We want to see the arrow's text that hided by the other arrows.

Thanks in advance~
  

HW: MacPro Xeon Quad/ 4GB RAM&&OS: WinXP sp3 / .NET 3.5&&Dev: VS 2008 C# sp1&&flowchart .Net ver 4.3.x&&
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to make top of Arrow text's zorder?
Reply #1 - Apr 9th, 2009 at 12:13pm
Print Post  
You can do that only if you use separate nodes as link labels instead of the built-in Text property. For example:

Code
Select All
int pc = link.ControlPoints.Count;
PointF linkCenter = new PointF(link.ControlPoints[pc/2 - 1], link.ControlPoints[pc/2];
ShapeNode label = diag.Factory.CreateShapeNode(linkCenter, labelSize);
label.Text = "link's label";
label.Transparent = true;
label.IgnoreLayout = true;
label.ZTop();
label.AttachTo(link, AttachToLink.Segment, link.SegmentCount / 2);
 



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