Click or drag to resize

SketchEditConfiguration Class

Defines which edit capabilities of the SketchEditor will be enabled or disabled.
Inheritance Hierarchy

Namespace:  Esri.ArcGISRuntime.UI
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
public sealed class SketchEditConfiguration : INotifyPropertyChanged

The SketchEditConfiguration type exposes the following members.

Public methodSketchEditConfiguration
Initializes a new instance of the SketchEditConfiguration class.
Public propertyAllowMove
Gets or sets a value indicating whether moving geometry is allowed.
Public propertyAllowRotate
Gets or sets a value indicating whether rotating geometry is allowed.
Public propertyAllowVertexEditing
Gets or sets a value indicating whether to show vertices.
Public propertyRequireSelectionBeforeDrag
Gets or sets a value indicating whether selection of edit tool (i.e. vertex, scale, rotate, graphic) is required before it's dragged.
Public propertyResizeMode
Gets or sets resize mode that indicate whether geometry resize is allowed and whether to preserve its aspect ratio.
Public propertyVertexEditMode
Gets or sets edit mode that indicate whether vertex location may also be updated by user interaction or just its selection state.
Public eventPropertyChanged
Occurs when a non-dependency property value changes.

If sketch is started without edit configuration parameter, default configuration is determined based on specified geometry parameter and/or creation mode; unless, optional drawAndEdit parameter is false, at which case, all edit capabilities are disabled.

Each time one of the StartAsync methods is called on the SketchEditor, it creates a default SketchEditConfiguration with parameters that make sense for that particular shape (e.g. circles are scaled in an aspect-ratio-preserving way, but ellipses are not). The intended use of the EditConfiguration property is to override these defaults after each StartAsync call, to modify the defaults based on context. You can use any one of the StartAsync overloaded methods which accepts a SketchEditConfiguration parameter, or modify the EditConfiguration after calling StartAsync.

See Also