NShape Reference
RotateCore

<< Click to Display Table of Contents >>

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

NShape Reference
RotateCore

Previous pageReturn to chapter overviewNext page

Rotates the shape around the given coordinates by the given angle.

Syntax

protected abstract bool RotateCore(int deltaAngle, int x, int y);

Description

Rotates the shape around the given coordinates by the given angle.

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

Parameters

Name

Description

deltaAngle

Specifies the rotation angle in tenths of degrees.

x

Specifies the rotation center's X coordinate.

y

Specifies the rotation center's Y coordinate.

Return Value

Returns true if the rotation was performed as requested, false if the shape was rotated 'as far as possible'.

Exceptions

Name

Description

CreateDiagram

Creates a new diagram.

DeleteDiagram

Deletes a diagram.