NShape Reference
MovePointByCore

<< Click to Display Table of Contents >>

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

NShape Reference
MovePointByCore

Previous pageReturn to chapter overviewNext page

Moves the control point by a given distance.

Syntax

protected abstract bool MovePointByCore(ControlPointId pointId, int deltaX, int deltaY, ResizeModifiers modifiers)

Description

Moves the control point of a shape by a given distance.

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

Parameters

Name

Description

pointId

Identifies the point that has to be moved.

deltaX

X coordinate of the distance to move.

deltaY

Y coordinate of the distance to move.

modifiers

Influences how the movement is performed.

Return Value

Returns true if the movement was performed as desired, false if it was moved 'as far as possible'.