ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / LayoutSnapping Class / IsEnabled Property
Example

In This Topic
    IsEnabled Property (LayoutSnapping)
    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.Layouts.LayoutSnapping.IsEnabled = true;
    
    // disable snapping
    ArcGIS.Desktop.Layouts.LayoutSnapping.IsEnabled = false;
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also