Having trouble getting help?
Contact Support
Contact Support
How to Move Nodes on a Diagram Programmatically?
16 Dec 20241 minute to read
You can move the desired collection of nodes to a diagram using the MoveNodes method. The following code example illustrates this.
//Move the selected nodes by 20 pixels in both horizontally and vertically.
diagram1.MoveNodes(diagram1.Controller.SelectionList, 20, 20, MeasureUnits.Pixel);
'Move the selected nodes by 20 pixels in both horizontally and vertically.
diagram1.MoveNodes(diagram1.Controller.SelectionList, 20, 20, MeasureUnits.Pixel)