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

IApplication.Document Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IA > IApplication Interface > IApplication.Document Property
ArcGIS Developer Help

IApplication.Document Property

The document that is currently loaded in the application.

[Visual Basic .NET]
Public ReadOnly Property Document As IDocument
public IDocument Document {get;}

Product Availability

Available with ArcGIS Desktop.


In ArcMap, the Document is the currently loaded document.
In ArcCatalog, the Document is the Normal template.

Both ArcMap and ArcCatalog applications are composed of several things including a document. The document is an object which controls the representation of data. In ArcMap, the document object is the MxDocument CoClass and in ArcCatalog it is the GxDocument CoClass. Access to these CoClasses is provided through this property.

See Also

IApplication Interface | IDocument Interface | MxDocument Class | GxDocument for use with ArcCatalog Class

.NET Samples

Applying user interface customizations at startup Create a custom tool Extension implementation ArcGIS Network Analyst extension barrier location editor Extension to listen to document open and save events Schematic diagram auto refresh Implementing a schematic digitizing tool Create a custom selection extension by extending ArcObjects Create a custom selection extension by extending ArcObjects Selection restriction evaluator Simple logging dockable window with a custom context menu StreetMap routing Layer filtering TOC view Custom feedback tool and font drop-down list tool control