Window.WindowState Property
Visio Automation Reference |
Gets or sets the state of a window. Read/write.
Version Information
Version Added: Visio 2000
Syntax
expression.WindowState
expression A variable that represents a Window object.
Return Value
Long
Remarks
The WindowState property value can be a combination of the constants declared in the Visio type library in VisWindowStates.
Note |
---|
The nFlags parameter to the Add method for the Windows collection can be composed of the various bits of VisWindowStates. |
If you specify conflicting bits, only one bit is used. For example, if you specify both visWSMaximized and visWSMinimized, the window is maximized.
The visWSVisible flag is ignored when setting the state of a window with the WindowState property. It is used in calls to the Add method for the Windows collection. Use the Visible property of the window to show or hide it. The visWSVisible flag is available only when this property is read.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to minimize the active drawing window.
Visual Basic for Applications |
---|
|
See Also