Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic get Shape node from each cell of lane diagram (Read 1182 times)
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
get Shape node from each cell of lane diagram
May 18th, 2009 at 7:23am
Print Post  
Hi
I am having a lanediagram(Grid) and each cell (of rows and col) has one shape node in it.
now i want to access each node and get the text to store in a table(same format as grid of rows and col).

Could you please tell me how to access these nodes row by col wise?

Thanks
Hamid
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: get Shape node from each cell of lane diagram
Reply #1 - May 18th, 2009 at 8:33am
Print Post  
You can obtain the bounding rectangle of the cell with the specified row and column and check which shape nodes are inside it bounds. To obtain the bounding rectangle of a cell in the lane grid, use the following code:

Code
Select All
RectangleF cellBounds = grid.GetCellBounds(grid[column, row]); 


Where grid, column and row are existing variables.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint