Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Positioning shapenode in LaneGrid (Read 1794 times)
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Positioning shapenode in LaneGrid
Nov 18th, 2011 at 6:54am
Print Post  
Hi,

I was trying to add a shapenode to a LaneGrid (with multiple rows and columns) from code behind.

I tried creating a lanegrid and placed shapenodes in cells from UI and exported the diagram to xml to figureout which properties need to be set to achieve the same. But couldnot find any properties referencing  the LaneGrid row or column in the xml node "<Node>"

I am not using the SwimLaneLayout. Just using the LaneGrid.

Please advice.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Positioning shapenode in LaneGrid
Reply #1 - Nov 18th, 2011 at 10:51am
Print Post  
Hi,

There isn't any built-in association between nodes and the background grid. If you need that, you could store row and column values in your custom properties, or in object assigned to the nodes' Tag property.

If you need to align a node to a specific grid cell, you could call diagram.LaneGrid.GetCellBounds(col, row), and assign the result to node.Bounds.

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