SetViewRect method

SetViewRect method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

See also         Example         Applies to

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

Version added

2000

Syntax

        
          object.SetViewRectdLeft, dTop, dWidth, dHeight
      

object

Required. An expression that returns a Window object.

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.

Remarks

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