NShape Reference
Shape.MoveTo Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Shape Class >

NShape Reference
Shape.MoveTo Method

Previous pageReturn to chapter overviewNext page

Moves the shape to a given position.

Syntax

public bool MoveTo(int toX, int toY)

Description

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.

Parameters

Name

Description

x, y

Coordinates to move the shape to.

Return Value

True, if the moving could be completed processed. False, if the shape's X and Y properties do not exactly have the parameter values.

Exceptions

None