Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (27 loc) · 1.15 KB

window-setviewrect-method-visio.md

File metadata and controls

46 lines (27 loc) · 1.15 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Window.SetViewRect Method (Visio)
vis_sdr.chm11616585
vis_sdr.chm11616585
visio
Visio.Window.SetViewRect
ab2da074-6e55-3aa7-9c4a-ae299b65a9c9
06/08/2017

Window.SetViewRect Method (Visio)

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

Syntax

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

expression A variable that represents a Window object.

Parameters

Name Required/Optional Data Type Description
dLeft Required Double The page coordinate of the left side of the window.
dTop Required Double The page coordinate of the top of the window.
dWidth Required Double The distance in page units from the left side to the right side of the window.
dHeight Required Double The distance in page units from the top to the bottom of the window.

Return Value

Nothing

Remarks

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