NShape Reference
MoveByCore

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced > ShapeBase Class >

NShape Reference
MoveByCore

Previous pageReturn to chapter overviewNext page

Moves the shape by a given distance.

Syntax

protected abstract bool MoveByCore(int deltaX, int deltaY)

Description

Moves the shape by a given distance.

This method contains the implementation of moving a shape and is therefore abstract. It has to be implmemented by the shape class that defines the shape's visual and behavior.

Parameters

Name

Description

deltaX, deltaY

The distance of the shape movement.

Return Value

Returns true if the movement was successful, false if the movement was performed 'as far as possible'.