ArcGIS Pro 2.7 API Reference Guide
IsEnabled Property (Snapping)
Example 

ArcGIS.Desktop.Mapping Namespace > Snapping Class : IsEnabled Property
Gets or sets if snapping is available within the project.
Syntax
public static bool IsEnabled {get; set;}
Public Shared Property IsEnabled As Boolean
Remarks
This property turns snapping on or off within the project.
Example
Snapping.IsEnabled = true; // enable snapping
if (Snapping.IsEnabled)
  { ... } // do something if snapping is enabled
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Snapping Class
Snapping Members