AD
Administrator
Syncfusion Team
December 8, 2005 09:57 PM UTC
Vinod,
When a symbol is moved, the links that connect to that symbol will be redrawn at the symbol''s new location. Hence if you have two symbols that are connected by a link, moving the two symbols will result in the link being adjusted to the new position. You do not have to explicitly select the link and apply a move to it as this should happen automatically.
The following code shows how to use the MoveCmd to displace two symbols that are connected by a link. Applying the move the link will automatically redraw the link at the new position between the symbols.
// Move Symbols sym1 and sym2 connected by a link
MoveCmd movcmd = new MoveCmd(50,50);
movcmd.Nodes.Add(sym1);
movcmd.Nodes.Add(sym2);
this.diagramComponent.Controller.ExecuteCommand(movcmd);
I tested this condition with the new v 4.1.0.0 beta and it appears to work perfectly.
Thanks,
Prakash Surendra
Syncfusion Inc.,