ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / CanSetMapTopology Method
The map to set the topology.
Example

In This Topic
    CanSetMapTopology Method
    In This Topic
    Gets if the active topology can be set to a MapTopology. Map topologies are only supported for 2D non-stereo maps.
    Syntax
    Public Shared Function CanSetMapTopology( _
       ByVal map As Map _
    ) As Boolean
    public static bool CanSetMapTopology( 
       Map map
    )

    Parameters

    map
    The map to set the topology.
    Example
    Set Map Topology as the current topology
    // Sets the topology of the specified map as the current map topology asynchronously.
    if (activeMap.CanSetMapTopology())
    {
      //Set the topology of the map as map topology
      var mapTopoProperties = await activeMap.SetMapTopologyAsync() as MapTopologyProperties;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.1 or higher.
    See Also