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. To use rule-based snapping, call SyncSourceSettings(SnapRules, SnapSourceEnablingBehavior) instead.
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 the synchronization call returns.
The order of SnapSourceSettings objects will match the order that the associated ISnapSource objects appear in the OperationalLayers and GraphicsOverlays collections, with objects from OperationalLayers appearing first, followed by GraphicsOverlays objects, in order.
For SnapSourceSettings objects that correspond to a SubtypeFeatureLayer, ChildSourceSettings returns a collection of separate SnapSourceSettings objects representing each SubtypeSublayer.
After synchronization, the collection will not contain a SnapSourceSettings for any loadable ISnapSource which is not yet Loaded.
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.7 |
.NET | 200.4 - 200.7 |
.NET Windows | 200.4 - 200.7 |
.NET Android | 200.4 - 200.7 |
.NET iOS | 200.4 - 200.7 |
.NET Framework | 200.4 - 200.7 |
UWP | 200.4 - 200.7 |