This document is archived and information here might be outdated.  Recommended version.


IMapControl4.DocumentMap Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

IMapControl4.DocumentMap Property

The name of the map that was last loaded into the control from a map document.

[Visual Basic .NET]
Public Property DocumentMap As String
[C#]
public string DocumentMap {get; set;}
[C++]
HRESULT get_DocumentMap(
void
);
[C++]
HRESULT put_DocumentMap(
);

Product Availability

Available with ArcGIS Engine.

Description

Returns the name of the last Map loaded into the MapControl with the LoadMxFile method. An empty string will be returned if no document is loaded.

See Also

IMapControl4 Interface