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


IDocument Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > ID > IDocument Interface
ArcGIS Developer Help

IDocument Interface

Provides access to other objects in the document.

Product Availability

Available with ArcGIS Desktop.

When To Use

Use the IDocument interface to get access to the document's title, type, accelerator table, commandbars collection, parent application, and Visual Basic project. Use IApplication::Document to get a reference to the document.

Members

Name Description
Read-only property Accelerators The accelerator table for this document.
Read-only property CommandBars The commandbars collection in this document.
Read-only property ID The unique id for this document.
Read-only property Parent The application in which this document is open.
Read-only property Title The title of this document.
Read-only property Type The type of this document.
Read-only property VBProject The VBProject for this document.

Classes that implement IDocument

Classes Description
GMxDocument (esriArcGlobe) Provides access to members that control the ArcGlobe document.
GxDocument (esriArcCatalog) Esri ArcCatalog Application Document.
MxDocument (esriArcMapUI) Esri Mx Document.
SxDocument (esriArcScene) Provides access to members that control the ArcScene document.

Remarks

The document object is called MxDocument in ArcMap and GxDocument in ArcCatalog.

See Also

IApplication.Document Property

.NET Samples

Extension implementation Extension to listen to document open and save events Schematic diagram auto refresh Simple logging dockable window with a custom context menu Simple logging dockable window with a custom context menu Simple logging dockable window with a custom context menu Subset network evaluators Layer filtering TOC view Custom feedback tool and font drop-down list tool control