ArcGIS Pro 2.6 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, Windows 7

See Also

Reference

Snapping Class
Snapping Members