GetViewRect method

Microsoft Visio Developer Reference

GetViewRect method

   Example   

Returns the page coordinates of a window's borders.

Version added

2000

Syntax

object.GetViewRect (doubleLeft, doubleTop, doubleWidth, doubleHeight)

object

Required. An expression that returns a Window object.

doubleLeft

Required Double. The coordinate in page units of the left side of the window.

doubleTop

Required Double. The coordinate in page units of the top of the window.

doubleWidth

Required Double. The distance in page units from the left side to the right side of the window.

doubleHeight

Required Double. The distance in page units from the top to the bottom of the window.

Remarks

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