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


IMapControl3.DocumentMap Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

IMapControl3.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(
  BSTR* pVal
);
[C++]
HRESULT put_DocumentMap(
  BSTR pVal
);
[C++]

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

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

IMapControl3 Interface