Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Getting Parent Tag in netDiagram using Boxes (Read 1483 times)
sripathi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Apr 21st, 2008
Getting Parent Tag in netDiagram using Boxes
Apr 29th, 2008 at 2:17pm
Print Post  
Hi,

I am using CreateBox and CreateArrow method to create Hierarchy tree using netDiagram. When I click on Child Box I need to pass its Parent Box's ID.

I Tried using e.Box.Parent.Tag --> its giving empty string

Can anyone suggest, how can I proceed further.

Thanks,
Sripathi
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Getting Parent Tag in netDiagram using Boxes
Reply #1 - Apr 29th, 2008 at 2:26pm
Print Post  
If you need a reference to the parent node in the tree, you will need to go through the IncomingArrows collection:

e.Box.IncomingArrows[0].Origin.Tag

Box.Parent returns the flowchart object, which has a Tag property too, so e.Box.Parent.Tag returns the flowchart's Tag.

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