Property SourceSettings
SourceSettings
Gets the collection of snapping sources and whether or not each is enabled for snapping.
Declaration
public IReadOnlyCollection<SnapSourceSettings> SourceSettings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<SnapSourceSettings> | Defines the collection of snapping sources and whether or not each is enabled for snapping. |
Remarks
Call SyncSourceSettings() to populate this collection with a SnapSourceSettings for each valid ISnapSource present in the connected MapView. SnapSettings is connected to a MapView via SnapSettings, and GeometryEditor. If there is no connected MapView, or the map view and the associated map contains no valid ISnapSource objects, then the collection will be empty after SyncSourceSettings() returns.
The order of SnapSourceSettings objects will match the order that the associated ISnapSource objects appear in the Esri.ArcGISRuntime.UI.Controls.MapView.Map.OperationalLayers and Esri.ArcGISRuntime.UI.Controls.MapView.GraphicsOverlays collections, with objects from Esri.ArcGISRuntime.UI.Controls.MapView.Map.OperationalLayers appearing first, followed by Esri.ArcGISRuntime.UI.Controls.MapView.GraphicsOverlays objects, in order. The collection will not contain a SnapSourceSettings for any ISnapSource which is not yet Loaded when SyncSourceSettings() is called.
As snapping is used to maintain data integrity between different sources of data, only ISnapSource objects that provide full resolution geometries as considered valid for creating a SnapSourceSettings object - see ISnapSource for more information.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.4 - 200.6 |
.NET | 200.4 - 200.6 |
.NET Windows | 200.4 - 200.6 |
.NET Android | 200.4 - 200.6 |
.NET iOS | 200.4 - 200.6 |
.NET Framework | 200.4 - 200.6 |
UWP | 200.4 - 200.6 |