Application Object Members
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.
Methods
| Name | Description |
Adds an object that supports the IOleUndoUnit or IVBUndoUnit interface to the Microsoft Office Visio undo queue. | ||
Starts a transaction with a unique scope ID for an instance of Microsoft Office Visio. | ||
Restores the built-in Microsoft Office Visio menus. | ||
Restores the built-in Microsoft Visio toolbars. | ||
Converts a string or number into an equivalent number in different measurement units. | ||
Performs the command that has the indicated command ID. | ||
Ends or cancels a transaction that has a unique scope. | ||
Returns an array naming the folders Microsoft Office Visio would search, given a list of paths. | ||
Formats a string or number into a string according to a format picture. Uses specified units for scaling and formatting. | ||
Formats a string or number into a string according to a format picture, using specified units for scaling and formatting. Optionally, for date or time strings, sets the language and calendar type of the string. | ||
Performs operations that involve the Microsoft Office Visio Help system. | ||
Informs a Microsoft Office Visio instance that client code is causing the instance to enter or exit a particular state. | ||
Empties the Microsoft Office Visio queue of undo actions. | ||
Queues a MarkerEvent event that fires after all other queued events. | ||
Closes the indicated instance of Microsoft Office Visio. | ||
Reverses the most recent undo unit. | ||
Renames the top-level open undo scope. | ||
Replaces the current built-in or custom menus of an application or document. | ||
Replaces the current built-in or custom toolbars of an application or document. | ||
Reverses the most recent undo unit, if the undo unit can be reversed. |
Properties
| Name | Description |
Indicates whether the instance of Microsoft Office Visio represented by the Application object is the active application on the Microsoft Windows desktop—the application that has the highlighted title bar. Read-only. | ||
Returns the active Document object, which is the document shown in the active window. Read-only. | ||
Returns the active Page object. Read-only. | ||
Specifies the printer that all Microsoft Office Visio documents print to. Read/write. | ||
Returns the active Window object. Read-only. | ||
Gets or sets the paths where Microsoft Office Visio looks for third-party or user add-ons. Read/write. | ||
Returns the Addons collection of an Application or InvisibleApp object. Read-only. | ||
Determines whether Microsoft Office Visio shows alerts and modal dialog boxes to the user. Read/write. | ||
Read-only. Returns the instance of Microsoft Office Visio that is associated with an object. | ||
Gets a reference to the Microsoft Office (MSO) IAssistance object, which provides a means for developers to create a customized help experience for users within Microsoft Office. Read-only. | ||
Allows you to temporarily disable automatic layout functionality in Microsoft Office Visio and then re-enable it after you are finished with an action. Read/write. | ||
Represents the time interval (in minutes) for how often you want to save copies of open documents that have unsaved changes in case of a power failure or an application error. Read/write. | ||
Returns a list of installed printers. Read-only. | ||
Returns the build number of the running instance. Read-only. | ||
Returns a UIObject object that represents a copy of the built-in Microsoft Office Visio menus and accelerators. Read-only. | ||
Returns a UIObject object that represents a copy of the built-in Microsoft Office Visio toolbars. Read-only. | ||
Returns a reference to the COMAddIns collection that represents all the Component Object Model (COM) add-ins currently registered in Microsoft Office Visio. Read-only. | ||
Returns a reference to the CommandBars collection that represents the command bars in the container application. Read-only. | ||
Determines how Microsoft Office Visio was started. Read-only. | ||
Returns an IDataObject interface representing the active Connector tool used in the Microsoft Office Visio user interface. Read-only. | ||
Determines the ID of the scope that causes an event to fire. Read-only. | ||
Gets a UIObject object that represents the current custom menus and accelerators of an Application object or a Document object. Read-only. | ||
Gets or sets the name of the file that defines custom menus and accelerators for an Application object or a Document object. Read/write. | ||
Gets a UIObject object that represents the current custom toolbars and status bars of an Application object or a Document object. Read-only. | ||
Returns or sets the name of the file that defines custom toolbars and status bars for an Application object or a Document object. Read/write. | ||
Gets whether the data features in Microsoft Office Visio 2007 are enabled for the current instance of Visio. Read-only. | ||
Determines the default unit of measure for quantities that represent angles. Read/write. | ||
Determines the default unit of measure for quantities that represent durations. Read/write. | ||
Returns an IDataObject interface that represents the Rectangle tool used in the Microsoft Office Visio user interface. Read-only. | ||
Determines the default unit of measure for quantities that represent text metrics. Read/write. | ||
Determines the zoom behavior for all new Microsoft Office Visio documents and drawing windows. Read/write. | ||
Determines whether the application recalculates cell formulas during a series of actions. Read/write. | ||
Returns information about the fonts that Microsoft Office Visio uses in its dialog boxes. Read-only. | ||
Returns the Documents collection for a Microsoft Office Visio instance. Read-only. | ||
Gets or sets the paths where Microsoft Office Visio looks for drawings. Read/write. | ||
Gets additional information associated with an event, if any exists. Read-only. | ||
Returns the EventList collection of an object or the EventList collection that contains an Event object. Read-only. | ||
Determines whether a Microsoft Office Visio instance fires events. Read/write. | ||
Returns the full build number of the running instance. Read-only. | ||
Gets or sets the paths where Microsoft Office Visio looks for Help files. Read/write. | ||
Determines whether shapes added to the drawing page by Automation are selected. Read/write. | ||
Gets the instance handle of the Application object for a 32-bit version of Microsoft Office Visio. Read-only. | ||
Determines whether a call to an event handler is between an EnterScope event and an ExitScope event for a scope. Read-only. | ||
Determines whether the current event handler is being called as a result of an Undo or Redo action in the application. Read-only. | ||
Represents the language ID of the version of the Microsoft Office Visio instance represented by the parent object. Read/write. | ||
Represents the language ID of the Help in the version of the Microsoft Office Visio instance represented by the parent object. Read-only. | ||
Returns a reference to the Microsoft Office (MSO) LanguageSettings interface. Read-only. | ||
Controls whether Microsoft Office Visio recalculates shape properties during drag operations on every mouse move or only after the mouse button is released. Read/write. | ||
Gets or sets the path to the My Shapes folder on the user's hard drive. Read/write. | ||
Specifies the name of an object. Read-only. | ||
Returns an object's type. Read-only. | ||
Gets or sets how long the Microsoft Office Visio instance waits before advising a container application that a Visio document being shown by the container has changed and should be redisplayed. Read/write. | ||
Returns the drive and folder path of the Microsoft Office Visio application. Read-only. | ||
Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only. | ||
Returns a unique process ID for a Microsoft Office Visio instance. Read-only. | ||
Determines whether Microsoft Office Visio prompts for document properties when it saves a document. Read/write. | ||
Returns a reference to the IDispatch interface of a VisSaveAsWeb object. Read-only. | ||
Determines whether the screen is updated (redrawn) during a series of actions. Read/write. | ||
Returns an ApplicationSettings object, which you can use to set Microsoft Office Visio application properties. Read-only. | ||
Determines whether the screen is updated (redrawn) during a series of actions. Read/write. | ||
Determines whether a progress indicator is shown while performing certain operations. Read/write. | ||
Determines whether a status bar is shown. Read/write. | ||
Determines whether toolbars and menu bars are visible. Read/write. | ||
Gets or sets the paths where Microsoft Office Visio looks for third-party and user add-ons to run when the application is started. Read/write. | ||
Returns status information for an object. Read-only. | ||
Gets or sets the paths where Microsoft Office Visio looks for stencils. Read/write. | ||
Gets or sets the paths where Microsoft Office Visio looks for templates. Read/write. | ||
Gets or sets events logged during a Microsoft Office Visio instance. Read/write. | ||
Returns the major version number of the Visio type library. Read-only. | ||
Returns the minor version number of the Visio type library. Read-only. | ||
Determines whether undo information is maintained in memory. Read/write. | ||
Gets or sets the user name of an Application object. Read/write. | ||
Specifies whether Microsoft Visual Basic for Applications (VBA) is enabled in the application. Read-only. | ||
Gets the root object of the object model exposed by Microsoft Visual Basic for Applications (VBA). Use this property to access and manipulate the VBA projects associated with currently open Microsoft Office Visio documents. Read-only. | ||
Returns the version of a running Microsoft Office Visio instance. Read-only. | ||
Determines whether an object is visible. Read/write. | ||
Returns the window associated with the current instance of Microsoft Office Visio. Read-only. | ||
Returns the 32-bit handle of a Microsoft Office Visio window. Read-only. | ||
Returns the Windows collection for a Microsoft Office Visio instance or window. Read-only. |
Events
| Name | Description |
Occurs after the Microsoft Office Visio instance leaves a modal state. | ||
Occurs when hidden information is removed from the document. | ||
Occurs when the operating system resumes normal operation after having been suspended. | ||
Occurs after firing of events is resumed. | ||
Occurs after a Microsoft Office Visio instance becomes active. | ||
Occurs after a Microsoft Office Visio instance becomes inactive. | ||
Occurs after a Microsoft Office Visio instance becomes active. | ||
Occurs after a Microsoft Office Visio instance becomes inactive. | ||
Occurs before a DataRecordset object is deleted from the DataRecordsets collection. | ||
Occurs before a document is closed. | ||
Occurs before a document is saved. | ||
Occurs just before a document is saved by using the Save As command. | ||
Occurs before a master is deleted from a document. | ||
Occurs before a Microsoft Office Visio instance enters a modal state. | ||
Occurs before a page is deleted. | ||
Occurs before a Microsoft Office Visio instance terminates. | ||
Occurs before selected objects are deleted. | ||
Occurs before a shape is deleted. | ||
Occurs before a shape is opened for text editing in the user interface. | ||
Occurs before a style is deleted. | ||
Occurs before the operating system enters a suspended state. | ||
Occurs before firing of events is suspended. | ||
Occurs before a window is closed. | ||
Occurs before a window is about to show a different page. | ||
Occurs before the shapes in the selection of a window are deleted. | ||
Occurs after the value changes in a cell in a document. | ||
Occurs after connections have been established between shapes. | ||
Occurs after connections between shapes have been removed. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelConvertToGroup event. | ||
Occurs when a DataRecordset object is added to a DataRecordsets collection. | ||
Occurs when a data recordset changes as a result of being refreshed. | ||
Occurs before a document enters design mode. | ||
Occurs after certain properties of a document are changed. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelDocumentClose event. | ||
Occurs after a document is created. | ||
Occurs after a document is opened. | ||
Occurs after a document is saved. | ||
Occurs after a document is saved by using the Save As command. | ||
Queued when an internal command begins, or when an Automation client opens a scope by using the BeginUndoScope method. | ||
Queued when an internal command ends, or when an Automation client exits a scope using the EndUndoScope method. | ||
Occurs after a formula changes in a cell in the object that receives the event. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelGroup event. | ||
Occurs when a keyboard key is pressed. | ||
Occurs when a keyboard key is pressed. | ||
Occurs when a keyboard key is released. | ||
Caused by calling the QueueMarkerEvent method. | ||
Occurs after a new master is added to a document. | ||
Occurs after properties of a master are changed and propagated to its instances. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelMasterDelete event. | ||
Occurs when a mouse button is clicked. | ||
Occurs when the mouse is moved. | ||
Occurs when a mouse button is released. | ||
Occurs before the Microsoft Office Visio instance is forced to flush its event queue. | ||
Occurs after the Microsoft Office Visio instance forces a flush of its event queue. | ||
Occurs after the Microsoft Ofice Visio instance flushes its event queue. | ||
Occurs when Microsoft Office Visio receives a keystroke message from Microsoft Windows that is targeted at an add-on window or child of an add-on window. | ||
Occurs after a new page is added to a document. | ||
Occurs after the name of a page, the background page associated with a page, or the page type (foreground or background) changes. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelPageDelete event. | ||
Occurs before the application converts a selection of shapes to a group in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the application closes a document in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the application groups a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the application deletes a master in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the application deletes a page in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the application terminates in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the application deletes a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the application deletes a style in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the operating system enters a suspended state. If any event handler returns True, the Microsoft Office Visio instance will deny the operating system's request. | ||
Occurs before the application suspends events in response to client code. If any event handler returns True, the operation is canceled. | ||
Occurs before the application ungroups a selection of shapes in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs before the application closes a window in response to a user action in the interface. If any event handler returns True, the operation is canceled. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelQuit event. | ||
Occurs after a document enters run mode. | ||
Occurs after one or more shapes are added to a document. | ||
Occurs after a set of shapes selected in a window changes. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelSelectionDelete event. | ||
Occurs after one or more shapes are added to a document. | ||
Occurs after a property of a shape that is not stored in a cell is changed in a document. | ||
Occurs after a data graphic is applied to or deleted from a shape. | ||
Occurs after a shape is no longer open for interactive text editing. | ||
Occurs after a shape is linked to a data row. | ||
Occurs after the link between a shape and a data row is deleted. | ||
Occurs after shapes are grouped or a group is ungrouped. | ||
Occurs after a new style is added to a document. | ||
Occurs after the name of a style is changed or a change to the style propagates to objects to which the style is applied. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelStyleDelete event. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelSuspend event. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelSuspendEvents event. | ||
Occurs after the text of a shape is changed in a document. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelUngroup event. | ||
Occurs when the zoom level or scroll position of a drawing window changes. | ||
Occurs after the application empties its message queue. | ||
Occurs after the active window changes in a Microsoft Office Visio instance. | ||
Occurs when the size or position of a window changes. | ||
Occurs after an event handler has returned True (cancel) to a QueryCancelWindowClose event. | ||
Occurs after a window is opened. | ||
Occurs after a window shows a different page. |