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

IMapDocument.DocumentType Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDocument Interface > IMapDocument.DocumentType Property
ArcGIS Developer Help

IMapDocument.DocumentType Property

The type of map document currently loaded in the object.

[Visual Basic .NET]
Public ReadOnly Property DocumentType As esriMapDocumentType
public esriMapDocumentType DocumentType {get;}
HRESULT get_DocumentType(
  esriMapDocumentType* Type
Type [out, retval]

Type is a parameter of type esriMapDocumentType*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Returns the type of MapDocument that is open.


If a map template (*.mxt) is open esriMapDocumentTypeMxd will be returned.

See Also

IMapDocument Interface