ArcGIS Pro 3.3 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 supprted for 2D non-stereo maps.
    Syntax
    public static bool CanSetMapTopology( 
       Map map
    )
    Public Shared Function CanSetMapTopology( _
       ByVal map As Map _
    ) As Boolean

    Parameters

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

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also