<< Click to Display Table of Contents >> NShape Reference
|
Moves the shape to a given position.
public bool MoveTo(int toX, int toY) |
The method tries to make the shape's x and y coordinates move to the given values. If this is not possible, for example because one of the shape's glue points is connected, the method moves the shape as far as possible and then returns false.
MoveTo is a convenience function implemented through a call to MoveBy.
Name |
Description |
---|---|
x, y |
Coordinates to move the shape to. |
True, if the moving could be completed processed. False, if the shape's X and Y properties do not exactly have the parameter values.
None