Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0200.4 - 200.7
.NET200.4 - 200.7
.NET Windows200.4 - 200.7
.NET Android200.4 - 200.7
.NET iOS200.4 - 200.7
.NET Framework200.4 - 200.7
UWP200.4 - 200.7
In This Article
Back to top Copyright © 2022 Esri.