public sealed class MapTopologyProperties : TopologyProperties
Public NotInheritable Class MapTopologyProperties Inherits TopologyProperties
public sealed class MapTopologyProperties : TopologyProperties
Public NotInheritable Class MapTopologyProperties Inherits TopologyProperties
QueuedTask.Run(async () => { var map = MapView.Active.Map; //Get a list of all the available topologies for the map var availableTopologies = await map.GetAvailableTopologiesAsync(); var gdbTopologies = availableTopologies.OfType<GeodatabaseTopologyProperties>(); var mapTopologies = availableTopologies.OfType<MapTopologyProperties>(); });
var map = MapView.Active.Map; var activeTopologyProperties = await map.GetActiveTopologyAsync(); var isMapTopology = activeTopologyProperties is MapTopologyProperties; var isGdbTopology = activeTopologyProperties is GeodatabaseTopologyProperties; var isNoTopology = activeTopologyProperties is NoTopologyProperties;
var mapTopoProperties = await map.GetTopologyAsync("Map") as MapTopologyProperties; var tolerance_m = mapTopoProperties.Tolerance; var defaultTolerance_m = mapTopoProperties.DefaultTolerance;
if (map.CanSetMapTopology()) { //Set the topology of the map as map topology mapTopoProperties = await map.SetMapTopologyAsync() as MapTopologyProperties; }
System.Object
ArcGIS.Desktop.Editing.TopologyProperties
ArcGIS.Desktop.Editing.MapTopologyProperties
Target Platforms: Windows 11, Windows 10