Application

From MapElves

Jump to: navigation, search

Main page -> Help -> Application

Contents

Overview

The Application object is the root of the Microsoft MapPoint object hierarchy. It represents the MapPoint application and allows access to the application window, opening map files, allowing COM add-ins to add or remove commands, and quitting the application. This object remains valid after the map is closed and then reopened.

Almost all objects in MapPoint have an Application property which returns this current MapPoint Application object and is not listed further in the help.

Note that the Application object cannot be used from within axMapPointControl.

Properties

ActiveMap Get the currently open Map object.
ActivePrinter Get or set the active printer. There must be an open map.
AddIns Returns the AddIns collection currently connected to MapPoint.
Build Get the Microsoft MapPoint or MapPoint Control build number.
Caption Returns or sets the caption text for the application window.
DefaultFilePath Returns the default path that MapPoint uses when opening files.
Height Returns or sets the height of the main application window.
ItineraryVisible Get or set whether the Directions pane is visible.
Left Returns or sets the left edge of the main application window.
MousePointer Get or set the type of mouse pointer displayed when the mouse is hovered over the map.
Name Returns the name of the Application object.
PaneState Get or set the state of the pane on the MapPoint window.
Path Returns the short file path to the Microsoft MapPoint executable file.
Region Returns the map region.
Toolbars Returns the Toolbars collection.
Top Returns or sets the distance from the top edge of the desktop to the top edge of the application window.
Units Get or set the distance units.
UserControl Get or set whether the user has control of MapPoint after the parent application has finished.
Version Returns the Microsoft MapPoint or MapPoint Control version number.
Visible Returns or sets the visibility of the application.
Width Returns or sets the width of the main application window.
WindowState Returns or sets the state of the application window.

Methods

Activate Activates the instance of MapPoint associated with the specified Application object.
AddCommand Adds a command to the Tools menu to call a COM add-in.
NewMap Creates a new map.
OpenMap Opens an existing map.
Quit Quits the application.
RemoveCommands Removes all of the commands from the Tools menu that call a COM add-in.

Events

BeforeClose Occurs before the map closes.
BeforeSave Occurs before the map is saved.
New Occurs when a new map is created.
Open Occurs when a map is opened.
Quit Occurs when MapPoint is closing.

How to

Personal tools