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


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

IApplication Interface

Provides access to members that query or modify the application.

Product Availability

Available with ArcGIS Desktop.

Description

The Application object is the core object in the ArcMap and ArcCatalog applications. This object represents the application itself and acts as the central point where access is gained to other objects in the system. The Application object's primary interface is IApplication. This interface provides access to the Document object, the extensions, the StatusBar object, the Templates object, the currently selected tool, and the Visual Basic Editor. There are several methods that allow you to open, save, and print documents, lock and unlock the application from user customizations, display dialogs, and exit the application.


Members

Name Description
Read/write property Caption The caption of this application.
Read/write property CurrentTool The currently selected tool.
Read-only property Document The document that is currently loaded in the application.
Method FindExtensionByCLSID Finds an extension by its CLSID.
Method FindExtensionByName Finds an extension by its name.
Read-only property hWnd The handle of the application's window.
Method IsDialogVisible Indicates if the specified dialog is visible in the application.
Method LockCustomization Locks the application's user interface against any customizations.
Read-only property Name The name of this application.
Method NewDocument Creates a new document in this application.
Method OpenDocument Opens a document in this application.
Method PrintDocument Displays the Print dialog.
Method PrintPreview Displays how the document will look like when it is printed.
Method RefreshWindow Redraws the application window.
Method SaveAsDocument Saves the document that is currently open in this application to a different file.
Method SaveDocument Saves the document that is currently open in this application.
Method ShowDialog Displays the specified dialog in the application.
Method Shutdown Terminates the application.
Read-only property StatusBar The statusbar of this application.
Read-only property Templates The templates collection.
Method UnlockCustomization Unlocks previous user interface customization lock.
Read-only property VBE The Visual Basic Environment.
Read/write property Visible Indicates if the application window is visible.

Classes that implement IApplication

Classes Description
Application (esriArcCatalog) Esri ArcCatalog Application.
Application (esriArcGlobe) Esri ArcGlobe Application.
Application (esriArcMap) Esri ArcMap Application
Application (esriArcScene) The 3D Modeling Application.
AppRef A reference to the currently running application.

See Also

IMxApplication Interface | IDocument.Parent Property | ICommand.OnCreate Method

.NET Samples

Angle Angle shape constructor Move a graphic along a path in ArcMap Applying user interface customizations at startup Create a custom tool Extension implementation Extension implementation Extension implementation Extension implementation Layer property page and property sheet Web browser dockable window Web browser dockable window Export any network analysis class to a text file ArcGIS Network Analyst extension barrier location editor ArcGIS Network Analyst extension barrier location editor Extension to listen to document open and save events Points along line construction tool Schematic diagram auto refresh Schematic diagram auto refresh Implementing a schematic digitizing tool Implementing a schematic digitizing tool Create a custom selection extension by extending ArcObjects Create a custom selection extension by extending ArcObjects Create a custom selection extension by extending ArcObjects Create a custom selection extension by extending ArcObjects Create a custom selection extension by extending ArcObjects 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 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 StreetMap routing Subset network evaluators Subset network evaluators Subset network evaluators Subset network evaluators Custom subtyped command and tool Custom subtyped command and tool Tabbed feature inspector Layer filtering TOC view Custom feedback tool and font drop-down list tool control Custom feedback tool and font drop-down list tool control ViperPin tool