ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeometryEngine Class / Move Method / Move(Geometry,Double,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.
Units along the Z-axis to move the geometry.
Example

Move(Geometry,Double,Double,Double) Method
Moves the geometry in a 3-dimensional manner.
Syntax

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.
dz
Units along the Z-axis to move the geometry.

Return Value

The moved geometry.
Exceptions
ExceptionDescription
Geometry is null or empty.
The method is not implemented for GeometryBag.
This geometry is not Z-Aware.
Spatial reference of geometryis an image coordinate system.
Remarks
Moves the geometry along the X-axis, the Y-axis and the Z-axis. The geometry must be Z-Aware or an exception will be thrown. Only changes the position of the Geometry without altering any of the other characteristics. Move is a spatial offset.

GeometryEngine Move

Example
Move a z-aware MapPoint
MapPoint zPt = MapPointBuilderEx.CreateMapPoint(1.0, 3.0, 2.0);
MapPoint zPtResult = GeometryEngine.Instance.Move(zPt, 4, 0.25, 0.5) as MapPoint;
// zPtResult is (5.0, 3.25, 2.5);
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also