Share via


Window Object Members

Visio Automation Reference

Represents an open window in a Microsoft Office Visio instance.

Methods

  Name Description
Aa342293.methods(en-us,office.12).gif Activate Activates a window.
Aa342293.methods(en-us,office.12).gif Close Closes a window.
Aa342293.methods(en-us,office.12).gif DeselectAll Deselects all shapes in a window or selection.
Aa342293.methods(en-us,office.12).gif DockedStencils Returns the names of all stencils docked in a Microsoft Office Visio drawing window.
Aa342293.methods(en-us,office.12).gif GetViewRect Returns the page coordinates of a window's borders.
Aa342293.methods(en-us,office.12).gif GetWindowRect Gets the size and position of the client area of a window.
Aa342293.methods(en-us,office.12).gif NewWindow Opens a new Microsoft Office Visio window.
Aa342293.methods(en-us,office.12).gif Scroll Scrolls the contents of a window vertically, horizontally, or both.
Aa342293.methods(en-us,office.12).gif ScrollViewTo Scrolls a window to a particular page coordinate.
Aa342293.methods(en-us,office.12).gif Select Selects or deselects an object.
Aa342293.methods(en-us,office.12).gif SelectAll Selects all possible shapes in a window or selection.
Aa342293.methods(en-us,office.12).gif SetViewRect Sets the page coordinates of a window's borders by adjusting the zoom level and center scroll position.
Aa342293.methods(en-us,office.12).gif SetWindowRect Sets the size and position of the client area of a window.

Properties

  Name Description
Aa342293.properties(en-us,office.12).gif AllowEditing Determines whether the Edit Stencil command is enabled or disabled in a stencil window. Read/write.
Aa342293.properties(en-us,office.12).gif Application Read-only. Returns the instance of Microsoft Office Visio that is associated with an object.
Aa342293.properties(en-us,office.12).gif BackgroundColor Determines the background color of the active Microsoft Office Visio drawing window and its associated print preview and full-screen view windows. Read/write.
Aa342293.properties(en-us,office.12).gif BackgroundColorGradient Determines the background gradient color of the active Microsoft Office Visio drawing window and its associated print preview and full-screen view windows. Read/write.
Aa342293.properties(en-us,office.12).gif Caption Gets or sets the caption for an object. Read/write.
Aa342293.properties(en-us,office.12).gif Document Gets the Document object that is associated with an object. Read-only.
Aa342293.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.
Aa342293.properties(en-us,office.12).gif ID Gets the ID of an object. Read-only.
Aa342293.properties(en-us,office.12).gif Index Gets the ordinal position of a Window object in the Windows collection. Read-only.
Aa342293.properties(en-us,office.12).gif InPlace Specifies whether a window is open in place, or whether a document is being viewed through a window that is open in place. Read-only.
Aa342293.properties(en-us,office.12).gif IsEditingOLE Determines whether a drawing window contains an ActiveX control that has focus or an embedded or linked object that is being edited. Read-only.
Aa342293.properties(en-us,office.12).gif IsEditingText Determines whether a text editing session is active in the drawing window. Read-only.
Aa342293.properties(en-us,office.12).gif Master Gets the master that is displayed in a window. Read-only.
Aa342293.properties(en-us,office.12).gif MasterShortcut Gets the master shortcut that is displayed in a window. Read-only.
Aa342293.properties(en-us,office.12).gif MergeCaption Gets or sets the abbreviated caption that appears on the page tab when the window is merged with other windows. Read/write.
Aa342293.properties(en-us,office.12).gif MergeClass Specifies a list of window classes that this anchored window can merge with. Read/write.
Aa342293.properties(en-us,office.12).gif MergeID Specifies the string version of a merged window's globally unique identifier (GUID). Read/write.
Aa342293.properties(en-us,office.12).gif MergePosition Specifies the left-to-right tab position of a merged anchored window. Read/write.
Aa342293.properties(en-us,office.12).gif ObjectType Returns an object's type. Read-only.
Aa342293.properties(en-us,office.12).gif Page Gets or sets the page that is displayed in a window. Read/write.
Aa342293.properties(en-us,office.12).gif PageTabWidth Gets or sets the width of the page tab control in a drawing window. Read/write.
Aa342293.properties(en-us,office.12).gif Parent Determines the parent of an object. Read-only.
Aa342293.properties(en-us,office.12).gif ParentWindow Returns the Window object that is the parent of another Window object. Read-only.
Aa342293.properties(en-us,office.12).gif PersistsEvents Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only.
Aa342293.properties(en-us,office.12).gif ReviewerMarkupVisible Determines whether reviewer markup, for a particular reviewer or all reviewers, is visible in a Microsoft Office Visio window that displays a drawing page. Read/write.
Aa342293.properties(en-us,office.12).gif ScrollLock Determines whether scrolling is disabled in a Microsoft Office Visio window. Read/write.
Aa342293.properties(en-us,office.12).gif SelectedCell Returns the selected cell in the ShapeSheet window. Read-only.
Aa342293.properties(en-us,office.12).gif SelectedDataRecordset Gets or sets the data recordset that is displayed on the active tab of the External Data Window in the Microsoft Office Visio user interface (UI). Read/write.
Aa342293.properties(en-us,office.12).gif SelectedDataRowID Gets or sets the ID of the data row that is selected (or that is the primary row selected, when multiple rows are selected) on the active tab of the External Data Window in the Microsoft Office Visio user interface (UI). Read/write.
Aa342293.properties(en-us,office.12).gif SelectedMasters Returns an array of the masters or master shortcuts selected in a Microsoft Office Visio stencil window. Read-only
Aa342293.properties(en-us,office.12).gif SelectedText Returns the selected text in the Microsoft Office Visio drawing window as a Characters object. Read/write.
Aa342293.properties(en-us,office.12).gif Selection Returns a Selection object that represents what is presently selected in the window, or assigns a selection created by the CreateSelection method to a Selection object. Read/write.
Aa342293.properties(en-us,office.12).gif Shape Returns the Shape object that owns a Cell, Characters, Row, or Section object or that is associated with a Hyperlink or OLEObject object or with the Hyperlinks collection. Read-only.
Aa342293.properties(en-us,office.12).gif ShowConnectPoints Determines whether connection points are shown in a window. Read/write.
Aa342293.properties(en-us,office.12).gif ShowGrid Determines whether a grid is shown in a window. Read/write.
Aa342293.properties(en-us,office.12).gif ShowGuides Determines whether guides are shown in a window. Read/write.
Aa342293.properties(en-us,office.12).gif ShowPageBreaks Determines whether page breaks are shown in a window. Read/write.
Aa342293.properties(en-us,office.12).gif ShowPageOutline Determines whether the drawing page outline is displayed in the Microsoft Office Visio drawing window. Read/write.
Aa342293.properties(en-us,office.12).gif ShowPageTabs Determines whether page tab controls are shown in the drawing window. Read/write.
Aa342293.properties(en-us,office.12).gif ShowRulers Determines whether rulers are shown in the drawing window. Read/write.
Aa342293.properties(en-us,office.12).gif ShowScrollBars Determines whether scroll bars are shown in the drawing window. Read/write.
Aa342293.properties(en-us,office.12).gif Stat Returns status information for an object. Read-only.
Aa342293.properties(en-us,office.12).gif SubType Returns the subtype of a Window object that represents a drawing window. Read-only.
Aa342293.properties(en-us,office.12).gif Type Returns the type of the object. Read-only.
Aa342293.properties(en-us,office.12).gif ViewFit Determines which auto-fit mode a window is in, if any. Read/write.
Aa342293.properties(en-us,office.12).gif Visible Determines whether an object is visible. Read/write.
Aa342293.properties(en-us,office.12).gif WindowHandle32 Returns the 32-bit handle of a Microsoft Office Visio window. Read-only.
Aa342293.properties(en-us,office.12).gif Windows Returns the Windows collection for a Microsoft Office Visio instance or window. Read-only.
Aa342293.properties(en-us,office.12).gif WindowState Gets or sets the state of a window. Read/write.
Aa342293.properties(en-us,office.12).gif Zoom Gets or sets the current display size (magnification factor) for a page in a window. Read/write.
Aa342293.properties(en-us,office.12).gif ZoomBehavior Determines the zoom behavior for a Microsoft Office Visio document or window. Read/write.
Aa342293.properties(en-us,office.12).gif ZoomLock Determines whether zooming is disabled in a Microsoft Office Visio drawing window. Read/write.

Events

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