Window.GetViewRect Method
Visio Automation Reference |
Returns the page coordinates of a window's borders.
Version Information
Version Added: Visio 5.0
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
If the Window object is not a visDrawing type, the GetViewRect method raises an exception.
See Also