Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ModifyItemCmd (Read 1032 times)
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
ModifyItemCmd
Sep 11th, 2008 at 5:50am
Print Post  
How to use ModifyItemCmd in undoredo... can u show me with simple statements
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ModifyItemCmd
Reply #1 - Sep 11th, 2008 at 7:48am
Print Post  
Code
Select All
DiagramNode node = diagram.ActiveItem as DiagramNode;
if (node != null)
{
	ModifyItemCmd mc = new ModifyItemCmd(node);
	RectangleF rect = node.Bounds;
	rect.Offset(10, 10);
	node.Bounds = rect;
	diagram.ExecuteCommand(mc);
}
 



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