Window

Window class

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 DatadiagramML file is initially opened by Visio.

Window()

Constructor.

Properties

NameTypeDescription
StencilGroupStringSpecifies the group of merged stencil windows of which the window is a member. This attribute is relevant only for Windo
StencilGroupPosintContains an integer that specifies the relative position of a stencil within a group in a window.
ShowRulersintSpecifies whether rulers are shown in the drawing window. The value of the property is BOOL integer constant.
ShowGridintSpecifies whether a grid is shown in the drawing window. The value of the property is BOOL integer constant.
ShowPageBreaksintSpecifies whether page breaks are shown in a window. The value of the property is BOOL integer constant.
ShowGuidesintSpecifies whether guides are shown in the drawing window. The value of the property is BOOL integer constant.
ShowConnectionPointsintSpecifies whether connection points are shown in a window. The value of the property is BOOL integer constant.
GlueSettingsintSpecifies the objects that shapes glue to when glue is enabled in the document. The value of the property is GlueSetting
SnapSettingsintSpecifies the objects that shapes snap to when snap is active in the window. The value may be a sum of the values in the
SnapExtensionsintSpecifies whether a specific snap extension setting is enabled or disabled for the active window. The value can be a sum
SnapAnglesFloatPointNumCollectionContains a collection of SnapAngle elements.
DynamicGridEnabledintSpecifies whether the dynamic grid feature is enabled for a document or window. The value of the property is BOOL intege
TabSplitterPosfloatSpecifies the width of the page tab control of a drawing window (as a fraction of the total width of the drawing window)
IDintThe unique ID of the element within its parent element.
WindowTypeintAn enumerated value that may be one of the following: Drawing, Sheet, Stencil, or Icon.A Window element of WindowType=‘S
WindowStateintThis attribute can be a sum of the following values. The value of the property is WindowStateValue integer constant.
DocumentStringFile path of the document displayed in this window. This attribute is relevant for windows whose WindowType is specified
WindowLeftintLeft coordinate of the window rectangle.
WindowTopintTop coordinate of the window rectangle.
WindowWidthlongWidth of the window rectangle.
WindowHeightlongHeight of the window rectangle.
MasterMasterMaster ID if this window is displaying a master.
ContainerTypeintMay be one of the following values: Document, Page, or Master. Only relevant when WindowType is specified as Drawing or
ContainerintID of container: Page, Sheet, or Master. Only relevant and necessary if ContainerType is specified.
SheetintID of sheet in container. Relevant only when Container is specified as Sheet.
ReadOnlyintRead-only flag if this stencil is not a document stencil. The value of the property is BOOL integer constant.
ParentWindowintID of window in which this stencil window is contained. Relevant only when WindowType is specified as Stencil.
PagePagePage ID if this window is displaying a page. Relevant only when WindowType is specified as Drawing and ContainerType is
ViewScalefloatOptional double.
ViewCenterXfloatOptional double.
ViewCenterYfloatOptional double.