Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrow origin (Read 2516 times)
T.Pascal
Guest


Arrow origin
Feb 24th, 2006 at 8:24am
Print Post  
hi, i'd like to know if it's possible to find the shape name of an arrow origin and destination box when an arrow is created or clicked

if yes, how? 


thx. (ps: sorry again for the previous post)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow origin
Reply #1 - Feb 24th, 2006 at 8:35am
Print Post  
Hi,

It is almost the same as in the ActiveX version:

private void fc_ArrowCreated(object sender, MindFusion.FlowChartX.ArrowEventArgs e)
{
  Box obox = e.Arrow.Origin as Box;
  Box dbox = e.Arrow.Destination as Box;

  string os = obox.Style == BoxStyle.Shape ?
    obox.Shape.Id : obox.Style.ToString();
  string ds = dbox.Style == BoxStyle.Shape ?
    dbox.Shape.Id : dbox.Style.ToString();

  e.Arrow.Text = os + "->" + ds;
}

Stoyan
  
Back to top
 
IP Logged
 
T.pascal
Guest


Re: Arrow origin
Reply #2 - Feb 24th, 2006 at 8:36am
Print Post  
thx again you're the best  Grin
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow origin
Reply #3 - Feb 24th, 2006 at 8:38am
Print Post  
8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint