Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to get the child node of a node? (Read 2062 times)
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
How to get the child node of a node?
Apr 6th, 2010 at 3:16am
Print Post  
Hi,

I have a TableNode which has been attached to a ShapeNode. I have the Caption and few images set inside the TableNode, which i want to drive programatically.

From the ShapeNode, how do i get the TableNode and assign these values?

Please help.
  

Castle Rider
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to get the child node of a node?
Reply #1 - Apr 6th, 2010 at 5:47am
Print Post  
Hi,

You can get it as shown below. You might have to use a different index if there are more attached nodes.

TableNode table = shape.SubordinateGroup.AttachedNodes[0] as TableNode;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
venki5star
Junior Member
**
Offline



Posts: 82
Location: India
Joined: Mar 9th, 2010
Re: How to get the child node of a node?
Reply #2 - Apr 6th, 2010 at 1:12pm
Print Post  
Thanks Stoyan.

Can you please help me in getting the shape node (container node) from Table node?
  

Castle Rider
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to get the child node of a node?
Reply #3 - Apr 6th, 2010 at 1:26pm
Print Post  
ShapeNode container = table.MasterGroup.MainItem as ShapeNode;

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