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

ArcGIS.Desktop.Mapping Namespace > Snapping Class > SetLayerSnapModes Method : SetLayerSnapModes(IEnumerable<Layer>,Boolean) Method
An IEnumerable containing the layers to set the snap modes on.
Set all the snap modes on(true) or off(false).
Sets all snap modes on a collection of layers to on (true) or off (false).
Syntax
public static void SetLayerSnapModes( 
   IEnumerable<Layer> layers,
   bool setAll
)
Public Overloads Shared Sub SetLayerSnapModes( _
   ByVal layers As IEnumerable(Of Layer), _
   ByVal setAll As Boolean _
) 

Parameters

layers
An IEnumerable containing the layers to set the snap modes on.
setAll
Set all the snap modes on(true) or off(false).
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Snapping Class
Snapping Members
Overload List