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

ArcGIS.Desktop.Mapping Namespace > Snapping Class > SetLayerSnapModes Method : SetLayerSnapModes(Layer,SnapMode,Boolean) Method
Sets the state of a single SnapMode for a Layer.
Syntax
public static void SetLayerSnapModes( 
   Layer layer,
   SnapMode snapMode,
   bool isSet
)
Public Overloads Shared Sub SetLayerSnapModes( _
   ByVal layer As Layer, _
   ByVal snapMode As SnapMode, _
   ByVal isSet As Boolean _
) 

Parameters

layer
snapMode
isSet
Remarks
The state of the other SnapMode's on the layer are unchanged.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Snapping Class
Snapping Members
Overload List