Window element (Windows_Type complexType) (Visio XML)

Represents an open window in a Microsoft Visio instance. This element contains information necessary to exactly re-create a user interface window in the application workspace when the file is initially opened by Visio.

Element information

Value
Element type
Window_Type
Namespace
http://schemas.microsoft.com/office/visio/2012/main
Schema file
VisioSchema15.xsd
Document parts
windows.xml

Definition

< xs:element name="Window" type="Window_Type" minOccurs="0" maxOccurs="unbounded" >
</xs:element >

Elements and attributes

If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.

Parent elements

Element Type Description
Windows
Windows_Type
Contains the Window elements for a document.

Child elements

Element Type Description
DynamicGridEnabled
DynamicGridEnabled_Type
Specifies whether the dynamic grid feature is enabled for a document or window.
GlueSettings
GlueSettings_Type
Specifies the objects that shapes glue to when glue is enabled in the document.
ShowConnectionPoints
ShowConnectionPoints_Type
Specifies whether connection points are shown in a window.
ShowGrid
ShowGrid_Type
Specifies whether a grid is shown in the drawing window.
ShowGuides
ShowGuides_Type
Specifies whether guides are shown in the drawing window.
ShowPageBreaks
ShowPageBreaks_Type
Specifies whether page breaks are shown in a window.
ShowRulers
ShowRulers_Type
Specifies whether rulers are shown in the drawing window.
SnapAngles
SnapAngles_Type
Contains a collection of SnapAngle elements.
SnapExtensions
SnapExtensions_Type
Specifies whether a specific snap extension setting is enabled or disabled for the active window.
SnapSettings
SnapSettings_Type
Specifies the objects that shapes snap to when snap is active in the window.
StencilGroup
StencilGroup_Type
Specifies the group of merged stencil windows of which the window is a member.
StencilGroupPos
StencilGroupPos_Type
Contains an integer that specifies the relative position of a stencil within a group in a window.
TabSplitterPos
TabSplitterPos_Type
Specifies the width of the page tab control of a drawing window (as a fraction of the total width of the drawing window).

Attributes

Attribute Type Required Description Possible values
Container
xsd:unsignedInt
optional
ID of container: Page, Sheet, or Master. Only relevant and necessary if ContainerType is specified. Values of the xsd:unsignedInt type.
ContainerType
xsd:token
optional
May be one of the following values: Document, Page, or Master. Only relevant when WindowType is specified as Drawing or Sheet. Values of the xsd:token type.
Document
xsd:string
optional
File path of the document displayed in this window. Values of the xsd:string type.
ID
xsd:unsignedInt
required
The unique ID of the element within its parent element. Values of the xsd:unsignedInt type.
Master
xsd:unsignedInt
optional
Master ID if this window is displaying a master. Values of the xsd:unsignedInt type.
Page
xsd:unsignedInt
optional
Page ID if this window is displaying a page. Relevant only when WindowType is specified as Drawing and ContainerType is specified as Page. Values of the xsd:unsignedInt type.
ParentWindow
xsd:unsignedInt
optional
ID of window in which this stencil window is contained. Relevant only when WindowType is specified as Stencil. Values of the xsd:unsignedInt type.
ReadOnly
xsd:boolean
optional
Read-only flag if this stencil is not a document stencil. Values of the xsd:boolean type.
Sheet
xsd:unsignedInt
optional
ID of sheet in container. Relevant only when Container is specified as Sheet. Values of the xsd:unsignedInt type.
ViewCenterX
xsd:double
optional
ViewCenterX and ViewCenterY specify a center point on a page that a new view (window) assumes when it is opened initially. Values of the xsd:double type.
ViewCenterY
xsd:double
optional
ViewCenterX and ViewCenterY specify a center point on a page that a new view (window) assumes when it is opened initially. Values of the xsd:double type.
ViewScale
xsd:double
optional
The default magnification factor to use when a new view (window) of the page is opened. For example, 1 = 100%; 1.5 = 150%, and so on. Values of the xsd:double type.
WindowHeight
xsd:unsignedInt
optional
Height of the window rectangle. Values of the xsd:unsignedInt type.
WindowLeft
xsd:short
optional
Left coordinate of the window rectangle. Values of the xsd:short type.
WindowState
xsd:unsignedInt
optional
An integer specifying bit flags. Values of the xsd:unsignedInt type.
WindowTop
xsd:short
optional
Top coordinate of the window rectangle. Values of the xsd:short type.
WindowType
xsd:token
required
An enumerated value that may be one of the following: Drawing, Sheet, Stencil, or Icon. Values of the xsd:token type.
WindowWidth
xsd:unsignedInt
optional
Width of the window rectangle. Values of the xsd:unsignedInt type.