ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Snapping Class / IsEnabled Property
Example

IsEnabled Property (Snapping)
Gets or sets if snapping is available within the project.
Syntax
public static bool IsEnabled {get; set;}
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
Configure Snapping - Turn Snapping on or off
//enable snapping
ArcGIS.Desktop.Mapping.Snapping.IsEnabled = true;

// disable snapping
ArcGIS.Desktop.Mapping.Snapping.IsEnabled = false;
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also