Property GeometryEditor
GeometryEditor
Gets or sets the editor that allows users to interactively create and edit geometries by interacting with the view.
Declaration
public GeometryEditor GeometryEditor { get; set; }
Property Value
Type | Description |
---|---|
GeometryEditor | The editor that allows users to interactively create and edit geometries by interacting with the view. |
Remarks
After assigning a GeometryEditor to the MapView, a Geometry being edited by the GeometryEditor will be displayed using the context, orientation and spatial reference of the MapView.
It may be useful to transfer a GeometryEditor, with its partly edited Geometry, from one MapView to another MapView. For example, in a multi-view application, partway through editing, a user may want to see and continue editing the partially edited geometry in a MapView using a different Basemap, rotation or SpatialReference (without changing the settings of their initial MapView).
A GeometryEditor can only be connected to one MapView at a time.
If the same GeometryEditor is assigned to a second MapView without first detaching,
then the previous MapView will automatically
have its GeometryEditor property changed to null
.
The GeometryEditor will project the Geometry to the SpatialReference of the new
MapView.
Starting or stopping Geometry editing using the GeometryEditor is independent of the GeometryEditor being attached to a MapView.
If editing the Geometry has already been started (using Start(GeometryType)) then reassignment of the GeometryEditor will automatically: - stop the editing, retain any changes, but undo can't be called on those changes - start the editing with the changed Geometry projected to the new MapView.
There is no difference between calling Start(GeometryType) before or after the GeometryEditor is assigned to a MapView. Stop() does not detach the GeometryEditor from its current MapView.
If the SpatialReference of the MapView is changed (for example, by a different Map being connected to the MapView) then the GeometryEditor will automatically take the same actions: - stop the editing, retain any changes, but undo can't be called on those changes - start the editing with the changed Geometry projected to the new MapView.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 200.3 - 200.5 |
.NET Framework | 200.3 - 200.5 |