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


IMapControlDefault.DocumentMap Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControlDefault Interface > IMapControlDefault.DocumentMap Property
ArcGIS Developer Help

IMapControlDefault.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

IMapControlDefault Interface