ArcObjects Library Reference (Controls)  

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

Simple dynamic display application (Code Files: MainForm) | Implementing a property page for an ArcGIS Engine application (Code Files: frmMain) | Save a layer file in a MapControl application (Code Files: frmMain) | Schematics Engine application (Code Files: MainForm) | Temporal statistics (Code Files: MainForm)