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.
Exception | Description |
---|---|
System.ArgumentNullException | Geometry is null or empty. |
System.NotImplementedException | The method is not implemented for GeometryBag. |
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
Target Platforms: Windows 10, Windows 8.1