This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control the Mx Document.
Name | Description | |
---|---|---|
ActivatedView | The activated view. This is the same as the active view unless a data frame is activated within a layout. | |
ActiveView | The active view. | |
ActiveViewCommand | The command associated with the active view. | |
AddLayer | Adds a layer to the current focus map. | |
CanInsertObject | Indicates if the document allows objects to be inserted. | |
ContentsView | The contents view at the specified index. | |
ContentsViewCount | The number of contents views in the document. | |
ContextItem | The last item that was right-clicked. | |
CurrentContentsView | The current contents view of the document. | |
CurrentLocation | The current mouse location in map units. | |
DefaultColor | The default color for the given type. | |
DefaultTextFont | The default font for text. | |
DefaultTextFont | The default font for text. | |
DefaultTextFontSize | The default font size for text. | |
DelayUpdateContents | Indicates document update notifications should be ignored. | |
FocusMap | The current focus map. | |
InsertObject | Inserts an object into the document. Displays the insert object dialog. | |
Maps | The collection of maps in the document. | |
OperationStack | The operation stack. | |
PageLayout | The page layout. | |
RelativePaths | Indicates if path names are stored relative to the document. | |
SearchTolerance | The global search tolerance in geographic units for selection. | |
SearchTolerancePixels | The global search tolerance in pixels for selection. | |
SelectedItem | The selected item in the layer control. | |
SelectedLayer | The selected layer in the layer control. | |
StyleGallery | Reference to the document's Style Gallery. | |
TableProperties | Table properties, for Layers and Tables in ArcMap. | |
UpdateContents | Notifies the document that the contents have been updated. |
CoClasses and Classes | Description |
---|---|
MxDocument | Esri Mx Document. |
This interface is a starting point for much of the other objects in ArcMap. For example, this interface provides access to the current active view, the currently selected map, all of the maps, and the style gallery. This interface also has many properties reflected in the running application including: the text font, the text size, and the search tolerance. Almost every ArcMap customization uses IMxDocument one way or another.
Obtain a reference to this interface via IApplication::Document.
To edit the contents of a map document saved to a file (*.mxd) outside of an ArcMap session or without instantiating a new Application (ArcMap process), see IMapDocument. IMapDocument provides the ability to edit and save the contents of a map document.