This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Output > ESRI.ArcGIS.Output > Interfaces > IW > IWorldFileSettings2 Interface > IWorldFileSettings2.MapRotation Property (ArcObjects .NET 10.5 SDK) |
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
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.