ArcGIS Pro 2.7 API Reference Guide
SetLayerSnapModes(IEnumerable<Layer>,LayerSnapModes) Method

ArcGIS.Desktop.Mapping Namespace > Snapping Class > SetLayerSnapModes Method : SetLayerSnapModes(IEnumerable<Layer>,LayerSnapModes) Method
An IEnumerable containing the layers to set the snap modes on.
A LayerSnapModes object obtained from GetLayerSnapModes or created.
Sets the snap modes for a collection of layers.
Syntax
public static void SetLayerSnapModes( 
   IEnumerable<Layer> layers,
   LayerSnapModes modes
)
Public Overloads Shared Sub SetLayerSnapModes( _
   ByVal layers As IEnumerable(Of Layer), _
   ByVal modes As LayerSnapModes _
) 

Parameters

layers
An IEnumerable containing the layers to set the snap modes on.
modes
A LayerSnapModes object obtained from GetLayerSnapModes or created.
Remarks
Snap modes can be set for a layer by either obtaining and modifying the existing snap modes with GetLayerSnapModes or by creating a new instance of LayerSnapModes and setting its properties then setting on the layer with this method.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Snapping Class
Snapping Members
Overload List