ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Geometry Namespace / IGeometryEngine Interface / 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

In This Topic
    Move(Geometry,Double,Double,Double) Method
    In This Topic
    Moves the geometry in a 3-dimensional manner.
    Syntax
    Overloads Function Move( _
       ByVal geometry As Geometry, _
       ByVal dx As Double, _
       ByVal dy As Double, _
       ByVal dz 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.
    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

    ArcGIS Pro version: 3.0 or higher.
    See Also