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


IWorldFileSettings2.MapRotation Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Output > ESRI.ArcGIS.Output > Interfaces > IW > IWorldFileSettings2 Interface > IWorldFileSettings2.MapRotation Property
ArcGIS Developer Help

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(
  System.Double* mapRotAngle
);
[C++]
Parameters
mapRotAngle [in]

mapRotAngle is a parameter of type double mapRotAngle [out, retval]
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