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

In This Topic
    IsEnabled Property (Snapping)
    In This Topic
    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
    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