Method SyncSourceSettings
SyncSourceSettings()
Synchronizes the SourceSettings collection based on ISnapSource objects in the currently connected Map.
Declaration
public void SyncSourceSettings()
Remarks
Call this method to populate SourceSettings with a SnapSourceSettings for each valid ISnapSource present in the MapView currently connected to this SnapSettings via SnapSettings, and GeometryEditor. If there is no connected MapView, or the map view and the associated map contains no ISnapSource objects valid for snapping, then the collection will be empty after this method returns.
The order of SnapSourceSettings objects will match the order that the associated ISnapSource objects appear in the OperationalLayers and Esri.ArcGISRuntime.UI.Controls.MapView.GraphicsOverlays collections, with objects from OperationalLayers appearing first, followed by Esri.ArcGISRuntime.UI.Controls.MapView.GraphicsOverlays objects, in order. The collection will not contain a SnapSourceSettings for any loadable ISnapSource which is not yet Loaded when SyncSourceSettings() is called.
Subsequent calls will update the existing collection, accounting for ISnapSource objects that have been added, removed, or moved since the last call to the same connected map. Any changes made to existing SnapSourceSettings objects, for example setting IsEnabled, will be preserved.
See Also
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 |