Class SketchEditConfiguration
Defines which edit capabilities of the SketchEditor will be enabled or disabled.
Implements
Namespace: Esri.ArcGISRuntime.UI
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class SketchEditConfiguration : INotifyPropertyChanged
Remarks
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.
Constructors
Name | Description |
---|---|
SketchEditConfiguration() | Initializes a new instance of the SketchEditConfiguration class. |
Properties
Name | Description |
---|---|
AllowMove | Gets or sets a value indicating whether moving geometry is allowed. |
AllowRotate | Gets or sets a value indicating whether rotating geometry is allowed. |
AllowVertexEditing | Gets or sets a value indicating whether to show vertices. |
RequireSelectionBeforeDrag | Gets or sets a value indicating whether selection of edit tool (i.e. vertex, scale, rotate, graphic) is required before it's dragged. |
ResizeMode | Gets or sets resize mode that indicate whether geometry resize is allowed and whether to preserve its aspect ratio. |
VertexEditMode | Gets or sets edit mode that indicate whether vertex location may also be updated by user interaction or just its selection state. |
Events
Name | Description |
---|---|
PropertyChanged | Occurs when a non-dependency property value changes. |
See Also
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |