Class GeometryEditorStyle
Defines the visual appearance of a geometry displayed by the GeometryEditor.
Inheritance
Implements
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
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 |
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 |
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 |
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 graphic or feature 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 graphic or feature 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 |
Events
Name | Description |
---|---|
PropertyChanged | Occurs when a non-dependency property value changes. |
See Also
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 200.3 - 200.5 |
.NET | 200.3 - 200.5 |
.NET Windows | 200.3 - 200.5 |
.NET Android | 200.3 - 200.5 |
.NET iOS | 200.3 - 200.5 |
.NET Framework | 200.3 - 200.5 |
UWP | 200.3 - 200.5 |