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


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

IMapReader Interface

Provides access to members that support reading a map document.

Product Availability

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

When To Use

When writing your own custom server object use IMapReader to read an .mxd or .pmf.

Members

Name Description
Read-only property AccessInternalObjects Indicates whether the internal objects of the map can be exposed to external clients.
Method Close Clears out all of the map objects in memory. The client must call the Open method again before attempting any other operations.
Read-only property DocumentInfo A set of name-value pairs for properties set for the map document (mxd only). These properties are string values set in the map document's Map Properties dialog and include: Title, Subject, Author, Category, Keywords and Comments.
Read-only property Map The map object at the specified index.
Read-only property MapCount The number of maps (data frames) in the document.
Method Open Opens an mxd or pmf file stored at the specified path.
Read-only property PageLayout The PageLayout object.
Read-only property Thumbnail The thumbnail stored in the map document.

Classes that implement IMapReader

Classes Description
MapReader The MapReader component provides programmatic access to the contents of a map document.

Remarks

MapReader is a helper coclass that reads the contents of a map document file (.mxd and .pmf).  The IMapReader interface provides read-only access to: document information (DocumentInfo), the map object (Map), the number of map objects within the document (MapCount), the page layout object (PageLayout), and the thumbnail image stored in the document.

.NET Samples

Utility wizard for basic schematic datasets configuration