Show / Hide Table of Contents

Method Move

Move(Geometry, Double, Double)

Moves the provided geometry by the specified distances along the x-axis and y-axis.

Declaration
public static Geometry Move(this Geometry geometry, double deltaX, double deltaY)
Parameters
Type Name Description
Geometry geometry

The geometry to move.

System.Double deltaX

The distance to move the geometry along the x-axis, in the units of the given geometry's spatial reference.

System.Double deltaY

The distance to move the geometry along the y-axis, in the units of the given geometry's spatial reference.

Returns
Type Description
Geometry

A new geometry based on moving the given geometry by the given delta values.

Remarks

Planar measurements of distance can be extremely inaccurate if using an unsuitable spatial reference. Ensure that you understand the potential for error with the geometry's spatial reference. If you need to calculate more accurate results, consider using a different spatial reference. For input geometries with a geographic spatial reference, consider projecting to an appropriate projected coordinate system before attempting to move them, as the distance represented by angular units of measure will differ depending on the geometry's location on the earth. See Spatial references for more information.

Supports true curves.

See Also
MoveGeodetic(System.Collections.Generic.IEnumerable<MapPoint>, System.Double, LinearUnit, System.Double, AngularUnit, GeodeticCurveType)
Rotate(Geometry, System.Double, MapPoint)
Scale(Geometry, System.Double, System.Double, MapPoint)
MoveSelectedElement(Double, Double)
MoveSelectedElement(MapPoint)

Applies to

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