Show / Hide Table of Contents

Method RotateSelectedElement

RotateSelectedElement(Double, MapPoint)

Rotates the SelectedElement by the specified angle.

Declaration
public void RotateSelectedElement(double angle, MapPoint origin)
Parameters
Type Name Description
System.Double angle

The angle by which to rotate the selected element, counterclockwise, in degrees.

MapPoint origin

The center of rotation. If null, the center of the extent of the SelectedElement is used.

Remarks

The angle of rotation is used in the form of the modulo of 360 degrees; for example rotating by 540 degrees is equivalent to rotating the by 180 degrees. A positive value corresponds to a counterclockwise rotation.

If the origin System.Drawing.Point has a different SpatialReference than the associated MapView, the point will be reprojected before the geometry is rotated, using the default transformation.

Any z-value of the origin MapPoint is ignored. RotateSelectedElement(Double, MapPoint) only supports rotations in the xy-plane.

If SelectedElement is a GeometryEditorVertex, or a GeometryEditorGeometry of type System.Drawing.Point, and the origin parameter is null (or is at the same location as the selected element), then rotating the selected element has no effect.

See Also
MoveSelectedElement(Double, Double)
MoveSelectedElement(MapPoint)
ScaleSelectedElement(Double, Double, MapPoint)
AllowRotatingSelectedElement
Rotate(Geometry, System.Double, MapPoint)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.8
.NET200.3 - 200.8
.NET Windows200.3 - 200.8
.NET Android200.3 - 200.8
.NET iOS200.3 - 200.8
.NET Framework200.3 - 200.8
UWP200.3 - 200.8
In This Article
Back to top Copyright © 2022 Esri.