ArcGIS Pro 2.6 API Reference Guide
SetLayerSnapModes(Layer,Boolean) Method

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

Parameters

layer
The layer 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, Windows 7

See Also

Reference

Snapping Class
Snapping Members
Overload List