ViewPositionAt Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:16

Description

Positions or centers a page on a specific point (X and Y in millipoints).

_caution The pasteboard must be large enough to allow scroll.

Syntax

Page.ViewPositionAt (X,Y,bCenter)

X

X-coordinate

Y

Y-coordinate

bCenter

True to center, False to put page's top left corner to X and Y

Remarks

Returns error code.

Examples

To force page centering in the window:

Page.ViewPositionAt (Page.GetPageWidth/2, Page.GetPageHeight/2, True)

To attach page at upper-left corner

Page.ViewPositionAt (0, 0, False)

Context

Page designer

See also

ViewGetMetrics