Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Align nodes methods (Read 1428 times)
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Align nodes methods
Jul 22nd, 2009 at 1:01pm
Print Post  
Hi there!

Is there any way to align a set of nodes lets say to top so a command like "Align top", "Align bottom" and so on?
please help! is urgent

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Align nodes methods
Reply #1 - Jul 22nd, 2009 at 1:12pm
Print Post  
Hi,

Code
Select All
// align left
foreach (DiagramNode node in diagram.Selection.Nodes)
{
	node.Move(
		diagram.ActiveItem.GetBounds().X,
		node.Bounds.Y);
}
 



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


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: Align nodes methods
Reply #2 - Jul 22nd, 2009 at 1:25pm
Print Post  
OK! Thanks! I had the same ideea
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint