This document is archived and information here might be outdated. Recommended version. |
The name of this map topology.
[Visual Basic .NET]
Public Property Name As String
[C#]
public string Name {get; set;}
Name allows setting and getting the name of the MapTopology. For example the name is used is used by the Choose Topology dropdown list to identify this MapTopology.
public void MapTopologyName()
{
UID extUid = new UIDClass();
extUid.Value = "esriEditorExt.TopologyExtension";
//You can get app from ICommand :: OnCreate() hook parameter
ITopologyExtension topologyExt = m_app.FindExtensionByCLSID(extUid) as ITopologyExtension;
IMapTopology mapTopology = topologyExt.MapTopology;
mapTopology.Name = "MyMapTopology";
System.Diagnostics.Debug.Write(mapTopology.Name);
}
Public Sub MapTopologyName()
'You can get app from ICommand :: OnCreate() hook parameter
Dim extUid As UID = New UIDClass()
extUid.Value = "esriEditorExt.TopologyExtension"
Dim topologyExt As ITopologyExtension = TryCast(app.FindExtensionByCLSID(extUid), ITopologyExtension)
Dim mapTopology As IMapTopology = topologyExt.MapTopology
mapTopology.Name = "MyMapTopology"
System.Diagnostics.Debug.Print(mapTopology.Name)
End Sub