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

Window.GetViewRect Method (Visio)

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

Returns the page coordinates of a window's borders.

Syntax

expression . GetViewRect( pdLeft , pdTop , pdWidth , pdHeight )

expression A variable that represents a Window object.

Parameters

NameRequired/OptionalData TypeDescription
pdLeftRequiredDoubleThe coordinate in page units of the left side of the window.
pdTopRequiredDoubleThe coordinate in page units of the top of the window.
pdWidthRequiredDoubleThe distance in page units from the left side to the right side of the window.
pdHeightRequiredDoubleThe distance in page units from the top to the bottom of the window.

Return Value

Nothing

Remarks

The values that the GetViewRect method returns are affected by whether page tabs and rulers are displayed on the Microsoft Visio drawing page.

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

© 2018 Microsoft