FitLayerToWindow

All Editions image\bltlrgss.gif Related Transactions  image\bltlrgss.gif Example

The FitLayerToWindow transaction defines the scale mode and position in which a layer is displayed in any view of the specified document.

Type XTYP_EXECUTE

Syntax [FitLayerToWindow(docwinID, layerID, scaleMode, centerMode, <pageID>)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

layerID

DWORD

identifier of the layer to define

scaleMode

WORD

0

default scaling

 

 

3

fit to window

 

 

4

fit horizontal

 

 

5

fit vertical

 

 

6

actual size

 

 

8

1-to-1 scale factor

centerMode

WORD

0

default position

 

 

1

center on page

 

 

2

bottom left of page

 

 

3

bottom right of page

 

 

4

top left of page

 

 

5

top right of page

 

 

22

middle center of page

 

 

23

right center of page

 

 

24

left center of page

 

 

25

bottom center of page

pageID

DWORD

0 | pageID

current | specific. Optional parameter.

image\tips.gif Parameter tip

Release information

Added in Release 3.83.

Published in Release 4.50.

See also

Zooming

Scrolling