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

ITransform2D.Rotate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IT > ITransform2D Interface > ITransform2D.Rotate Method
ArcGIS Developer Help

ITransform2D.Rotate Method

Rotates about the specified origin point. The angle is in radians. The origin can be in a different spatial reference than the geometry being rotated.

[Visual Basic .NET]
Public Sub Rotate ( _
    ByVal Origin As IPoint, _
    ByVal rotationAngle As Double _
public void Rotate (
    IPoint Origin,
    double rotationAngle
  IPoint* Origin,
  double rotationAngle

Origin is a parameter of type IPoint* rotationAngle
rotationAngle is a parameter of type double

Product Availability

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


Rotate performs an angular transform (rotation) on the Geometry.  The Origin is the only point in the transformation guaranteed to remain in the same location after the transformation is performed.  Regardless of the Origin, the transformed Geometry is the same, except for a positional offset.  The RotationAngle is measured in radians.


An Envelope cannot be Rotated.

Transform2D Rotate Example

See Also

ITransform2D Interface

.NET Samples

Move a graphic along a path in ArcMap Create custom move, rotate, and scale GeometricEffects within a single project