SetVisibleRectangle()
Summary
Controls the portion of a layout that is displayed in a layout window.
Syntax
SetVisibleRectangle(string layout_name, real x, real y, real w, real h)
| Argument | Contents |
|---|---|
| layout_name | The name of the layout, or null for the current layout |
| x | The position of the left edge |
| y | The position of the top edge |
| w | The width of the rectangle |
| h | The height of the rectangle |
Notes
-
Use SetVisibleRectangle() with ClickRect() to let users zoom in on the layout window.
-
All measurements are in page units.
Example
SetVisibleRectangle(null, 0, 0, 8.5, 11.0)
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | There is no layout with the specified name, or layout_name is null and there is no layout window |
See Also
| Function | Summary |
|---|---|
| CenterLayout() | Centers a layout at a specific point |
| SetLayoutPrevious() | Changes the layout window to display at the scale that was in effect before the most recent change |