ArcGIS Pro 2.8 API Reference Guide
SetLayerSnapModes(IDictionary<Layer,LayerSnapModes>,Boolean) Method

ArcGIS.Desktop.Mapping Namespace > Snapping Class > SetLayerSnapModes Method : SetLayerSnapModes(IDictionary<Layer,LayerSnapModes>,Boolean) Method
Dictionary of LayerSnapModes (by Layer) to set.
(Optional) Reset snapping (on) for layers not specified in the dictionary. Default is False.
Sets the snap modes for a layer
Syntax
public static void SetLayerSnapModes( 
   IDictionary<Layer,LayerSnapModes> dictionary,
   bool resetOtherLayers
)
Public Overloads Shared Sub SetLayerSnapModes( _
   ByVal dictionary As IDictionary(Of Layer,LayerSnapModes), _
   Optional ByVal resetOtherLayers As Boolean _
) 

Parameters

dictionary
Dictionary of LayerSnapModes (by Layer) to set.
resetOtherLayers
(Optional) Reset snapping (on) for layers not specified in the dictionary. Default is False.
Remarks
Provides the ability to set different snapmodes for different layers in one call.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Snapping Class
Snapping Members
Overload List