ArcGIS Pro 2.7 API Reference Guide
GetSnapMode Method (LayerSnapModes)
Example 

ArcGIS.Desktop.Mapping Namespace > LayerSnapModes Class : GetSnapMode Method
Gets the state of a single SnapMode.
Syntax
public bool GetSnapMode( 
   SnapMode snapMode
)
Public Function GetSnapMode( _
   ByVal snapMode As SnapMode _
) As Boolean

Parameters

snapMode
Example
//obtain Midpoint snapping state
var isSnapModeMidpoint = Snapping.GetSnapMode(SnapMode.Midpoint);
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LayerSnapModes Class
LayerSnapModes Members