Window.GetViewRect method (Visio)

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

Name Required/Optional Data type Description
pdLeft Required Double The coordinate in page units of the left side of the window.
pdTop Required Double The coordinate in page units of the top of the window.
pdWidth Required Double The distance in page units from the left side to the right side of the window.
pdHeight Required Double The 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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.