IMap.Name Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMap.Name Property

Name of the map.

[Visual Basic .NET]
Public Property Name As String
public string Name {get; set;}
HRESULT get_Name(
  System.String* Name
HRESULT put_Name(
  BSTR Name

Parameters Name [out, retval]
Name is a parameter of type BSTR* Name [in]
Name is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Each map has a name controlled by this property.  The default name of the first map is 'Layers' and new maps get the name 'New Data Frame', 'New Data Frame 2' and so on. The name of each map appears in the Display and Source content views in the table of contents.

See Also

IMap Interface

.NET Samples

Synchronized MapControl and PageLayoutControl application (Code Files: frmMain)

.NET Related Topics

How to access maps and layers via the MapDocument | Using the TOCControl