Share via


Application Object [Visio 2003 SDK Documentation]

Application
Multiple objects

Represents an instance of Microsoft Office Visio. An external program typically creates or retrieves an Application object before it can retrieve other Visio objects from that instance. Use the Microsoft Visual Basic CreateObject function or the New keyword to run a new instance, or use the GetObject function to retrieve an instance that is already running. You can also use the CreateObject function with the InvisibleApp object to run a new instance that is invisible. Set the value of the InvisibleApp object's Visible property to True to show it.

Version added

4.1

Remarks

Use the Documents, Windows, and Addons properties of an Application object to retrieve the Document, Window, and Addon collections of the instance.

Use the ActiveDocument, ActivePage, or ActiveWindow property to retrieve the currently active Document, Page, or Window object.

Use the BuiltInMenus, BuiltInToolbars, CustomMenus, CustomToolbars, or CommandBars property to access the Application object's menus and toolbars.

ActiveDocument is the default property of an Application object.

Note  Code in the Microsoft Visual Basic for Applications project of a Visio document can use the Visio global object instead of a Visio Application object to retrieve other objects.

Properties | Active property | ActiveDocument property | ActivePage property | ActivePrinter property | ActiveWindow property | AddonPaths property | Addons property | AlertResponse property | AutoLayout property | AutoRecoverInterval property | AvailablePrinters property | Build property | BuiltInMenus property | BuiltInToolbars property | COMAddIns property | CommandBars property | CommandLine property | ConnectorToolDataObject property | CurrentScope property | CustomMenus property | CustomMenusFile property | CustomToolbars property | CustomToolbarsFile property | DefaultAngleUnits property | DefaultDurationUnits property | DefaultTextUnits property | DefaultZoomBehavior property | DeferRecalc property | DialogFont property | Documents property | DrawingPaths property | EventInfo property | EventList property | EventsEnabled property | FullBuild property | HelpPaths property | InhibitSelectChange property | InstanceHandle32 property | IsInScope property | IsUndoingOrRedoing property | Language property | LanguageHelp property | LiveDynamics property | Name property | ObjectType property | OnDataChangeDelay property | Path property | PersistsEvents property | ProcessID property | PromptForSummary property | SaveAsWebObject property | ScreenUpdating property | Settings property | ShowChanges property | ShowProgress property | ShowStatusBar property | ShowToolbar property | StartupPaths property | Stat property | StencilPaths property | TemplatePaths property | TraceFlags property | TypelibMajorVersion property | TypelibMinorVersion property | UndoEnabled property | UserName property | VBAEnabled property | VBE property | Version property | Visible property | Window property | WindowHandle32 property | Windows property

Methods | AddUndoUnit method | BeginUndoScope method | ClearCustomMenus method | ClearCustomToolbars method | ConvertResult method | DoCmd method | EndUndoScope method | EnumDirectories method | FormatResult method | FormatResultEx method | InvokeHelp method | OnComponentEnterState method | PurgeUndo method | QueueMarkerEvent method | Quit method | Redo method | RenameCurrentScope method | SetCustomMenus method | SetCustomToolbars method | Undo method

Events | AfterModal event | AfterResume event | AppActivated event | AppDeactivated event | AppObjActivated event | AppObjDeactivated event | BeforeDocumentClose event | BeforeDocumentSave event | BeforeDocumentSaveAs event | BeforeMasterDelete event | BeforeModal event | BeforePageDelete event | BeforeQuit event | BeforeSelectionDelete event | BeforeShapeDelete event | BeforeShapeTextEdit event | BeforeStyleDelete event | BeforeSuspend event | BeforeWindowClosed event | BeforeWindowPageTurn event | BeforeWindowSelDelete event | CellChanged event | ConnectionsAdded event | ConnectionsDeleted event | ConvertToGroupCanceled event | DesignModeEntered event | DocumentChanged event | DocumentCloseCanceled event | DocumentCreated event | DocumentOpened event | DocumentSaved event | DocumentSavedAs event | EnterScope event | ExitScope event | FormulaChanged event | KeyDown event | KeyPress event | KeyUp event | MarkerEvent event | MasterAdded event | MasterChanged event | MasterDeleteCanceled event | MouseDown event | MouseMove event | MouseUp event | MustFlushScopeBeginning event | MustFlushScopeEnded event | NoEventsPending event | OnKeystrokeMessageForAddon event | PageAdded event | PageChanged event | PageDeleteCanceled event | QueryCancelConvertToGroup event | QueryCancelDocumentClose event | QueryCancelMasterDelete event | QueryCancelPageDelete event | QueryCancelQuit event | QueryCancelSelectionDelete event | QueryCancelStyleDelete event | QueryCancelSuspend event | QueryCancelUngroup event | QueryCancelWindowClose event | QuitCanceled event | RunModeEntered event | SelectionAdded event | SelectionChanged event | SelectionDeleteCanceled event | ShapeAdded event | ShapeChanged event | ShapeExitedTextEdit event | ShapeParentChanged event | StyleAdded event | StyleChanged event | StyleDeleteCanceled event | SuspendCanceled event | TextChanged event | UngroupCanceled event | ViewChanged event | VisioIsIdle event | WindowActivated event | WindowChanged event | WindowCloseCanceled event | WindowOpened event | WindowTurnedToPage event

Parent Objects

Child Objects | Addons Object | ApplicationSettings Object | Document Object | Documents Object | EventList Object | Page Object | UIObject Object | Window Object | Windows Object