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 Geometry
- Returns
null
while IsStarted isfalse
. - Returns an empty geometry (
is true
) immediately after the GeometryEditor was started using Start(GeometryType) . - Returns the input geometry immediately after the Geometry
Editor was started using Start(Geometry). - Returns the current geometry while the Geometry
Editor is in use (IsStarted istrue
).
If the Geometrynull
, or the editor was started using Start(Geometrynull
.
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
- starting or stopping the geometry editor - for example using Start(Geometry
Type) or Stop() - performing programmatic edits - for example using Insert
Vertex(Map or DeletePoint) Selected Element() - performing interactive edits - for example adding or moving a vertex
- undoing or redoing edits - using Undo() or Redo()
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.3 - 200.6 |
.NET | 200.3 - 200.6 |
.NET Windows | 200.3 - 200.6 |
.NET Android | 200.3 - 200.6 |
.NET iOS | 200.3 - 200.6 |
.NET Framework | 200.3 - 200.6 |
UWP | 200.3 - 200.6 |