ArcGIS Pro 2.8 API Reference Guide
SetLayerSnapModes(Layer,LayerSnapModes) Method

ArcGIS.Desktop.Mapping Namespace > Snapping Class > SetLayerSnapModes Method : SetLayerSnapModes(Layer,LayerSnapModes) Method
The layer to set the snap mode on.
A LayerSnapModes object obtained from GetLayerSnapModes or a new instance of.
Sets the snap modes for a layer.
Syntax
public static void SetLayerSnapModes( 
   Layer layer,
   LayerSnapModes modes
)
Public Overloads Shared Sub SetLayerSnapModes( _
   ByVal layer As Layer, _
   ByVal modes As LayerSnapModes _
) 

Parameters

layer
The layer to set the snap mode on.
modes
A LayerSnapModes object obtained from GetLayerSnapModes or a new instance of.
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