ArcGIS Pro 2.6 API Reference Guide
GetSnapMode Method (Snapping)
Example 

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

Parameters

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

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Snapping Class
Snapping Members