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


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

IMapControl3.DocumentFilename Property

The filename of the last map document loaded into the control.

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

Product Availability

Available with ArcGIS Engine.

Description

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

See Also

IMapControl3 Interface

.NET Samples

Save a layer file in a MapControl application Simple dynamic display application Schematics Engine application Temporal statistics Temporal statistics