Table of contents
TOC
Collapse the table of content
Expand the table of content

Window Object (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Represents an open window in a Microsoft Visio instance.

Remarks

The default property of a Window object is Application.

To retrieve

  • the active window in an instance of Visio, use the ActiveWindow property of an Application object.

  • a Page object that represents the page shown in the window, use the Page property of a Window object.

  • a Document object that represents the document displayed in that window, use the Document property.

  • a Selection object that represents the shapes selected in that window, use the Selection property.

Note Beginning with Microsoft Visio 2002, the following methods of the Window object are obsolete: AddToGroup, Cut, Combine, Copy, Delete, Duplicate, Fragment, Group, Intersect, Join RemoveFromGroup, Subtract, Trim, and Union. Existing solutions that invoke these methods will continue to work properly; however, new or rebuilt solutions should use these methods with the Selection object.

In addition, the Window object's Paste method is now obsolete. Use the Paste or PasteSpecial method of the Page, Master, or Shape object. (Use the Shape object in the case of group shapes.)

Events

Name
BeforeWindowClosed
BeforeWindowPageTurn
BeforeWindowSelDelete
KeyDown
KeyPress
KeyUp
MouseDown
MouseMove
MouseUp
OnKeystrokeMessageForAddon
QueryCancelWindowClose
SelectionChanged
ViewChanged
WindowActivated
WindowChanged
WindowCloseCanceled
WindowTurnedToPage

Methods

Name
Activate
CenterViewOnShape
Close
DeselectAll
DockedStencils
GetViewRect
GetWindowRect
NewWindow
Scroll
ScrollViewTo
Select
SelectAll
SetViewRect
SetWindowRect

Properties

Name
AllowEditing
Application
BackgroundColor
BackgroundColorGradient
Caption
Document
EventList
ID
Index
InPlace
IsEditingOLE
IsEditingText
Master
MasterShortcut
MergeCaption
MergeClass
MergeID
MergePosition
ObjectType
Page
Parent
ParentWindow
PersistsEvents
ReviewerMarkupVisible
ScrollLock
SelectedCell
SelectedDataRecordset
SelectedDataRowID
SelectedMasters
SelectedText
SelectedValidationIssue
Selection
SelectionForDragCopy
Shape
ShowConnectPoints
ShowGrid
ShowGuides
ShowPageBreaks
ShowPageOutline
ShowPageTabs
ShowRulers
ShowScrollBars
Stat
SubType
Type
ViewFit
Visible
WindowHandle32
Windows
WindowState
Zoom
ZoomBehavior
ZoomLock
© 2018 Microsoft