Show / Hide Table of Contents

Class GeometryEditorStyle

Defines the visual appearance of a geometry displayed by the GeometryEditor.

Inheritance
System.Object
GeometryEditorStyle
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)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.UI.Editing
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class GeometryEditorStyle : INotifyPropertyChanged
Remarks

Each GeometryEditorTool has a GeometryEditorStyle which controls the appearance of the different elements of the Geometry. You can change the symbology used for vertices, selections, lines and fills. For example, in a Feature or Graphic editing workflow, you can set the LineSymbol to match the symbol of a polyline geometry in order to provide visual consistency.

When a GeometryEditorTool is created, a consistent set of default symbology appropriate for that tool type is applied to its Style property.

You can change the Opacity of the overall style, or alternatively set different opacity (alpha) values on the individual symbols of the style, so that the underlying map components are visible through the geometry being edited.

You can set each symbol to null - consider carefully how this can affect your workflows, as you will not be able to see, select, or otherwise interact with those GeometryEditorElement types.

When snapping is enabled (IsEnabled), the visual cues that indicate to a user when snapping has occurred can be customized using SnappedToVertexSymbol, SnappedToLineSymbol, and MultipleSnapCandidatesSymbol.

Constructors

Name Description
GeometryEditorStyle()

Initializes a new instance of the GeometryEditorStyle class with a consistent set of red symbols, and displays white numbers on vertices.

Properties

Name Description
BoundingBoxHandleSymbol

Gets or sets the symbol used to draw control handles for interactive scaling when a scalable element is selected in the GeometryEditor and AllowScalingSelectedElement is true.

BoundingBoxSymbol

Gets or sets the symbol used to draw a bounding box when a movable, rotatable, or scalable element is selected in the GeometryEditor and AllowScalingSelectedElement is true.

FeedbackLineSymbol

Gets or sets the symbol used to draw the edges currently being changed by an interactive edit, when editing polyline or polygon geometries.

FeedbackVertexSymbol

Gets or sets the symbol used to draw vertices currently being changed by an interactive edit, when editing any geometry type.

FillSymbol

Gets or sets the symbol used to fill the current geometry when editing polygon geometries.

LineSymbol

Gets or sets the symbol used to draw the current geometry when editing polyline geometries, and the outline of the geometry when editing polygon geometries.

MidVertexSymbol

Gets or sets the symbol used to draw the mid-vertices of the current geometry when editing polygon or polyline geometries.

MultipleSnapCandidatesSymbol

Gets or sets the symbol used to indicate that multiple candidates for snapping exist at the interactive edit position, when the GeometryEditor has snapped the interaction position to the best candidate.

Opacity

Gets or sets the opacity of the GeometryEditor display in the view, a value between 0 (fully transparent) and 1 (fully opaque). Default is 1.

RotateHandleSymbol

Gets or sets the symbol used to draw a control handle for interactive rotation of the selected element, when a rotatable element is selected in the GeometryEditor and AllowRotatingSelectedElement is true.

SelectedMidVertexSymbol

Gets or sets the symbol used to draw the currently selected mid-vertex of the current geometry when editing polygon or polyline geometries.

SelectedVertexSymbol

Gets or sets the symbol used to draw the currently selected vertex of the current geometry when editing any geometry type.

SnappedToLineSymbol

Gets or sets the symbol used to indicate an edge (segment) of a geometry during an interactive edit, when the GeometryEditor has snapped the interaction position to that edge.

SnappedToVertexSymbol

Gets or sets the symbol used to indicate a vertex of a geometry during an interactive edit, when the GeometryEditor has snapped the interaction position to that vertex.

VertexSymbol

Gets or sets the symbol used to draw the vertices of the current geometry when editing any geometry type.

VertexTextSymbol

Gets or sets the symbol used to draw vertex numbers for the current geometry. If null, no numbers are displayed.

Events

Name Description
PropertyChanged

Occurs when a non-dependency property value changes.

See Also

InteractionConfiguration
Symbol

Applies to

TargetVersions
.NET Standard 2.0200.3 - 200.7
.NET200.3 - 200.7
.NET Windows200.3 - 200.7
.NET Android200.3 - 200.7
.NET iOS200.3 - 200.7
.NET Framework200.3 - 200.7
UWP200.3 - 200.7
In This Article
Back to top Copyright © 2022 Esri.