Window class

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.

The Window type exposes the following members:

Constructors

ConstructorDescription
Window()Constructor.

Properties

PropertyDescription
stencil_groupSpecifies the group of merged stencil windows of which the window is a member. This attribute is relevant only for Window elements whose WindowType attribute is Stencil, and only if the stencil window is part of a merged group of stencil windows. All stencil windows that are part of the same merged group have the same StencilGroup element value.
stencil_group_posContains an integer that specifies the relative position of a stencil within a group in a window.
show_rulersSpecifies whether rulers are shown in the drawing window.
show_gridSpecifies whether a grid is shown in the drawing window.
show_page_breaksSpecifies whether page breaks are shown in a window.
show_guidesSpecifies whether guides are shown in the drawing window.
show_connection_pointsSpecifies whether connection points are shown in a window.
glue_settingsSpecifies the objects that shapes glue to when glue is enabled in the document.
snap_settingsSpecifies the objects that shapes snap to when snap is active in the window. The value may be a sum of the values in the following table.
snap_extensionsSpecifies whether a specific snap extension setting is enabled or disabled for the active window. The value can be a sum of the values in the following table.
snap_anglesContains a collection of SnapAngle elements.
dynamic_grid_enabledSpecifies whether the dynamic grid feature is enabled for a document or window.
tab_splitter_posSpecifies the width of the page tab control of a drawing window (as a fraction of the total width of the drawing window).
idThe unique ID of the element within its parent element.
window_typeAn enumerated value that may be one of the following: Drawing, Sheet, Stencil, or Icon.A Window element of WindowType=‘Stencil’ must appear after its parent drawing window (WindowType=‘Drawing’) and before any other drawing window elements.
window_stateThis attribute can be a sum of the following values.
documentFile path of the document displayed in this window. This attribute is relevant for windows whose WindowType is specified as Stencil.
window_leftLeft coordinate of the window rectangle.
window_topTop coordinate of the window rectangle.
window_widthWidth of the window rectangle.
window_heightHeight of the window rectangle.
masterMaster ID if this window is displaying a master.
container_typeMay be one of the following values: Document, Page, or Master. Only relevant when WindowType is specified as Drawing or Sheet.
containerID of container: Page, Sheet, or Master. Only relevant and necessary if ContainerType is specified.
sheetID of sheet in container. Relevant only when Container is specified as Sheet.
read_onlyRead-only flag if this stencil is not a document stencil.
parent_windowID of window in which this stencil window is contained. Relevant only when WindowType is specified as Stencil.
pagePage ID if this window is displaying a page. Relevant only when WindowType is specified as Drawing and ContainerType is specified as Page.
view_scaleOptional double.
view_center_xOptional double.
view_center_yOptional double.

See Also