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


IWorldFileSettings2.MapRotation Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Output)  

IWorldFileSettings2.MapRotation Property

The Map rotation angle in degrees.

[Visual Basic .NET]
Public Property MapRotation As Double
[C#]
public double MapRotation {get; set;}
[C++]
HRESULT get_MapRotation(
  double* mapRotAngle
);
[C++]
HRESULT put_MapRotation(
  double mapRotAngle
);
[C++]

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

Product Availability

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

Remarks

When the map is part of a rotated dataframe, assign the dataframe rotation angle (in degrees) to this property.  This will ensure that the world file or GeoTIFF header appropriately accounts for rotation of the image.  The rotation angle of a map can be read from IDisplayTransformation::Rotation. The display transformation of the active view can be accessed via IActiveView::ScreenDisplay.

See Also

IWorldFileSettings2 Interface

.NET Related Topics

How to initialize a world file with rotation