AnnRotateAngle property (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

double AnnRotateAngle (long hObject);

Overview

Refer to Implementing Annotations.

Remarks

(Read Only) Gets the rotation angle for an annotation object.

The angle is in radians, and uses the following convention.

The possible range of rotate values is (-Pi) ... (Pi)

A rotation in the clockwise direction is considered a positive rotation.

A rotation in the counter-clockwise direction is considered a negative rotation.

For example, if a rectangle is rotated 90 degrees in the counter clockwise direction, this property will get (-PI/2) for the rotation angle. If a rectangle is rotated 90 degrees in the clockwise direction, this property will get PI/2 for the rotation angle. If a rectangle is rotated 270 degrees in the counter clockwise direction, this is equivalent to 90 degrees in the clockwise direction so the rotation value returned is PI/2.

This property is only valid for the following annotation object types:

ANN_OBJECT_POINTER

ANN_OBJECT_LINE

ANN_OBJECT_RULER

ANN_OBJECT_AUDIO

ANN_OBJECT_BUTTON

ANN_OBJECT_ELLIPSE

ANN_OBJECT_HILITE

ANN_OBJECT_HOTSPOT

ANN_OBJECT_NOTE

ANN_OBJECT_RECT

ANN_OBJECT_REDACT

ANN_OBJECT_STAMP

ANN_OBJECT_TEXT

ANN_OBJECT_VIDEO

ANN_OBJECT_PUSHPIN

ANN_OBJECT_ENCRYPT

If hObject is not one of the annotation object types listed above, an error will be set in the AnnError property.

See Also

Elements:

AnnHitTestExt method, EnableRestrictToContainer property

Topics:

Annotations (Document/Medical only): Object Manipulation