ArcGIS Pro 2.7 API Reference Guide
Move(Geometry,Double,Double) Method
Example 

ArcGIS.Core.Geometry Namespace > GeometryEngine Class > Move Method : Move(Geometry,Double,Double) Method
The geometry to move.
Units along the x-axis to move the geometry.
Units along the y-axis to move the geometry.
Moves a geometry.
Syntax
Public Overloads Function Move( _
   ByVal geometry As Geometry, _
   ByVal dx As Double, _
   ByVal dy As Double _
) As Geometry

Parameters

geometry
The geometry to move.
dx
Units along the x-axis to move the geometry.
dy
Units along the y-axis to move the geometry.

Return Value

The moved geometry.
Exceptions
ExceptionDescription
Geometry is null or empty.
The method is not implemented for GeometryBag.
Remarks
Moves the Geometry along the x-axis and the y-axis. Only changes the position of the Geometry without altering any of the other characteristics. Move is a spatial offset.

GeometryEngine Move

Example
List<MapPoint> pts = new List<MapPoint>();
pts.Add(MapPointBuilder.CreateMapPoint(1.0, 1.0, 3.0));
pts.Add(MapPointBuilder.CreateMapPoint(3.0, 3.0, 3.0));
pts.Add(MapPointBuilder.CreateMapPoint(3, 2, 3.0));
pts.Add(MapPointBuilder.CreateMapPoint(4.0, 2.0, 3.0));

Polyline polyline = PolylineBuilder.CreatePolyline(pts);

Geometry geometry = GeometryEngine.Instance.Move(polyline, 3, 2);
Polyline polylineResult = geometry as Polyline;
// polylineResult.Points[0] = 4.0, 3.0, 3.0
// polylineResult.Points[1] = 6.0, 5.0, 3.0
// polylineResult.Points[2] = 6.0, 4.0, 3.0
// polylineResult.Points[3] = 7.0, 4.0, 3.0
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GeometryEngine Class
GeometryEngine Members
Overload List