Windows Object Members
Visio Automation Reference |
Includes a Window object for a window that is open in the application.
Methods
Name | Description | |
---|---|---|
Add | Adds a new Window object to the Windows collection. | |
Arrange | Arranges the windows in a Windows collection. |
Properties
Name | Description | |
---|---|---|
Application | Read-only. Returns the instance of Microsoft Office Visio that is associated with an object. | |
Count | Returns the number of objects in a collection. Read-only. | |
EventList | Returns the EventList collection of an object or the EventList collection that contains an Event object. Read-only. | |
Item | Returns an item from a collection. The Item property is the default property for all collections. Read-only. | |
ItemEx | Returns a Window object from a collection. Read-only. | |
ItemFromID | Returns an item of a collection using the ID of the item. Read-only. | |
ObjectType | Returns an object's type. Read-only. | |
PersistsEvents | Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only. |
Events
Name | Description | |
---|---|---|
BeforeWindowClosed | Occurs before a window is closed. | |
BeforeWindowPageTurn | Occurs before a window is about to show a different page. | |
BeforeWindowSelDelete | Occurs before the shapes in the selection of a window are deleted. | |
KeyDown | Occurs when a keyboard key is pressed. | |
KeyPress | Occurs when a keyboard key is pressed. | |
KeyUp | Occurs when a keyboard key is released. | |
MouseDown | Occurs when a mouse button is clicked. | |
MouseMove | Occurs when the mouse is moved. | |
MouseUp | Occurs when a mouse button is released. | |
OnKeystrokeMessageForAddon | 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. | |
QueryCancelWindowClose | 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. | |
SelectionChanged | Occurs after a set of shapes selected in a window changes. | |
ViewChanged | Occurs when the zoom level or scroll position of a drawing window changes. | |
WindowActivated | Occurs after the active window changes in a Microsoft Office Visio instance. | |
WindowChanged | Occurs when the size or position of a window changes. | |
WindowCloseCanceled | Occurs after an event handler has returned True (cancel) to a QueryCancelWindowClose event. | |
WindowOpened | Occurs after a window is opened. | |
WindowTurnedToPage | Occurs after a window shows a different page. |