NShape Reference
MoveBy Method

<< Click to Display Table of Contents >>

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

NShape Reference
MoveBy Method

Previous pageReturn to chapter overviewNext page

Moves the shape by a given distance.

Syntax

public abstract bool MoveBy(int deltaX, int deltaY)

Description

The method tries to make the shape's x and y coordinates move by the given distance. 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.

Parameters

Name

Description

deltaX, deltaY

Distance the shape has moved.

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