Show / Hide Table of Contents

Class SketchEditConfiguration

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

Inheritance
Object
SketchEditConfiguration
Implements
System.ComponentModel.INotifyPropertyChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Object.ToString()
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

StartAsync(SketchCreationMode, Boolean)
StartAsync(SketchCreationMode, SketchEditConfiguration)
StartAsync(Geometry)
StartAsync(Geometry, SketchCreationMode)
StartAsync(Geometry, SketchCreationMode, SketchEditConfiguration)

Applies to

TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.