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

    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
    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

    ArcGIS Pro version: 3 or higher.
    See Also