Show / Hide Table of Contents

Property Geometry

Geometry

Gets the current geometry, updated as you interact with the view.

Declaration
public Geometry Geometry { get; }
Property Value
Type Description
Geometry

The current geometry, updated as you interact with the view.

Remarks

The geometry returned depends on the state of the GeometryEditor:

  • Returns null while IsStarted is false.
  • Returns an empty geometry (IsEmpty is true) immediately after the GeometryEditor was started using Start(GeometryType).
  • Returns the input geometry immediately after the GeometryEditor was started using Start(Geometry).
  • Returns the current geometry while the GeometryEditor is in use (IsStarted is true).

If the GeometryEditor was started by calling Start(Geometry), then the geometry is returned in the same SpatialReference as the input geometry. If the input geometry spatial reference is null, or the editor was started using Start(GeometryType), then the geometry is returned in the spatial reference of the associated MapView. If no spatial reference is set on either input geometry or via an associated map view, then the spatial reference of the geometry will be null.

Editing feature data that is reprojected on the fly can introduce spatial errors into the data. When accuracy is important, best practice is to use a spatial reference for the map view which matches the feature layer geometry you are editing. The ArcGIS Pro editing help topic Introduction to projection on the fly contains further advice.

The value of Geometry changes, raising the PropertyChanged event, when:

  • starting or stopping the geometry editor - for example using Start(GeometryType) or Stop()
  • performing programmatic edits - for example using InsertVertex(MapPoint) or DeleteSelectedElement()
  • performing interactive edits - for example adding or moving a vertex
  • undoing or redoing edits - using Undo() or Redo()

See Also
SelectedElement

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.