ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Snapping Class / GetLayerSnapModes Method / GetLayerSnapModes(Map) Method

In This Topic
    GetLayerSnapModes(Map) Method
    In This Topic
    Gets the LayerSnapModes for all layers in a Map.
    Syntax
    public static Dictionary<Layer,LayerSnapModes> GetLayerSnapModes( 
       Map map
    )
    Public Overloads Shared Function GetLayerSnapModes( _
       ByVal map As Map _
    ) As Dictionary(Of Layer,LayerSnapModes)

    Parameters

    map

    Return Value

    A dictionary of LayerSnapModes keyed by Layer.
    Remarks
    All layers that can be snapped to are included.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also