Partager via


Windows Object Members

Visio Automation Reference

Includes a Window object for a window that is open in the application.

Methods

  Name Description
Aa342294.methods(en-us,office.12).gif Add Adds a new Window object to the Windows collection.
Aa342294.methods(en-us,office.12).gif Arrange Arranges the windows in a Windows collection.

Properties

  Name Description
Aa342294.properties(en-us,office.12).gif Application Read-only. Returns the instance of Microsoft Office Visio that is associated with an object.
Aa342294.properties(en-us,office.12).gif Count Returns the number of objects in a collection. Read-only.
Aa342294.properties(en-us,office.12).gif EventList Returns the EventList collection of an object or the EventList collection that contains an Event object. Read-only.
Aa342294.properties(en-us,office.12).gif Item Returns an item from a collection. The Item property is the default property for all collections. Read-only.
Aa342294.properties(en-us,office.12).gif ItemEx Returns a Window object from a collection. Read-only.
Aa342294.properties(en-us,office.12).gif ItemFromID Returns an item of a collection using the ID of the item. Read-only.
Aa342294.properties(en-us,office.12).gif ObjectType Returns an object's type. Read-only.
Aa342294.properties(en-us,office.12).gif PersistsEvents Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only.

Events

  Name Description
Aa342294.events(en-us,office.12).gif BeforeWindowClosed Occurs before a window is closed.
Aa342294.events(en-us,office.12).gif BeforeWindowPageTurn Occurs before a window is about to show a different page.
Aa342294.events(en-us,office.12).gif BeforeWindowSelDelete Occurs before the shapes in the selection of a window are deleted.
Aa342294.events(en-us,office.12).gif KeyDown Occurs when a keyboard key is pressed.
Aa342294.events(en-us,office.12).gif KeyPress Occurs when a keyboard key is pressed.
Aa342294.events(en-us,office.12).gif KeyUp Occurs when a keyboard key is released.
Aa342294.events(en-us,office.12).gif MouseDown Occurs when a mouse button is clicked.
Aa342294.events(en-us,office.12).gif MouseMove Occurs when the mouse is moved.
Aa342294.events(en-us,office.12).gif MouseUp Occurs when a mouse button is released.
Aa342294.events(en-us,office.12).gif 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.
Aa342294.events(en-us,office.12).gif 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.
Aa342294.events(en-us,office.12).gif SelectionChanged Occurs after a set of shapes selected in a window changes.
Aa342294.events(en-us,office.12).gif ViewChanged Occurs when the zoom level or scroll position of a drawing window changes.
Aa342294.events(en-us,office.12).gif WindowActivated Occurs after the active window changes in a Microsoft Office Visio instance.
Aa342294.events(en-us,office.12).gif WindowChanged Occurs when the size or position of a window changes.
Aa342294.events(en-us,office.12).gif WindowCloseCanceled Occurs after an event handler has returned True (cancel) to a QueryCancelWindowClose event.
Aa342294.events(en-us,office.12).gif WindowOpened Occurs after a window is opened.
Aa342294.events(en-us,office.12).gif WindowTurnedToPage Occurs after a window shows a different page.