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

Window.SetViewRect Method (Visio)

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

Sets the page coordinates of a window's borders by adjusting the zoom level and center scroll position.


expression . SetViewRect( dLeft , dTop , dWidth , dHeight )

expression A variable that represents a Window object.


NameRequired/OptionalData TypeDescription
dLeftRequiredDoubleThe page coordinate of the left side of the window.
dTopRequiredDoubleThe page coordinate of the top of the window.
dWidthRequiredDoubleThe distance in page units from the left side to the right side of the window.
dHeightRequiredDoubleThe distance in page units from the top to the bottom of the window.

Return Value



If the Window object is not a visDrawing type, the SetViewRect method raises an exception.

© 2018 Microsoft