Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Layout.Arrange arranges the elements in the order in which they were added (Read 2783 times)
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Layout.Arrange arranges the elements in the order in which they were added
Mar 29th, 2012 at 8:01am
Print Post  

Hi,

When we invoke layout.Arrange() on a diagram, it arranges the nodes in the order in which they were added in to the diagram.

Is there any way to keep the order and arrange in the current order itself? (We need to rearrange the nodes and then apply layout.)

Thanks in advance.
BinuVC
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout.Arrange arranges the elements in the order in which they were added
Reply #1 - Mar 29th, 2012 at 10:34am
Print Post  
Hi,

Which layout class does that?

Stoyan
  
Back to top
 
IP Logged
 
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Re: Layout.Arrange arranges the elements in the order in which they were added
Reply #2 - Mar 29th, 2012 at 10:52am
Print Post  
TreeLayout arranges the nodes at a particular level in the order they were added to the diagram.


Thanks

BinuVC
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout.Arrange arranges the elements in the order in which they were added
Reply #3 - Mar 29th, 2012 at 12:41pm
Print Post  
The order of a node's children when using TreeLayout depends on the position of links in its OutgoingLinks collection. If you need the child nodes to be arranged in a particular order, you will have to set the same order for the links within the parent's OutgoingLinks.

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