This document is archived and information here might be outdated.  Recommended version.


IDisplayTransformation.Rotation Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Display)  

IDisplayTransformation.Rotation Property

Rotation angle in degrees.

[Visual Basic .NET]
Public Property Rotation As Double
[C#]
public double Rotation {get; set;}
[C++]
HRESULT get_Rotation(
  double* degrees
);
[C++]
HRESULT put_Rotation(
  double degrees
);
[C++]

Parameters degrees [out, retval] degrees is a parameter of type double degrees [in] degrees is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

This property controls the rotation of the display.  The angle of the rotation is measured in degrees and the rotation occurs around the center of the FittedBounds.

TrackRotate automatically sets this property but if you are using RotateStart / RotateStop, you must do so yourself.  RotateStop provides the final angle rotation that should be used with this property.

Setting a new rotation automatically fires the ITransformEvents::RotationUpdated event.

See Also

IDisplayTransformation Interface | IScreenDisplay.RotateStop Method | IScreenDisplay.RotateStart Method | IScreenDisplay.RotateMoveTo Method | IDisplayTransformation.Rotation Property | IScreenDisplay.RotateTimer Method

.NET Samples

Dynamic display�tracking dynamic object (Code Files: TrackObject)