ArcObjects Library Reference (Output)  

IWorldFileSettings2.MapRotation Property

The Map rotation angle in degrees.

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


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.


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