Control Reference > VSDraw Control > VSDraw Properties > ZoomMode Property (VSDraw) |
Sets or returns the zoom mode (explicit percentage or one of the automatic settings).
[form!]VSDraw.ZoomMode[ = ZoomModeSettings ]
If the drawing has physical dimensions (PageHeight and PageWidth properties set to non-zero values), then the Zoom and ZoomMode properties determine how these dimensions are mapped to the screen. The control will automatically add and manage scrollbars if the dimensions of the drawing become larger than the control.
If PageWidth and PageHeight are set to zero, this property has no effect.
The settings for the ZoomMode property are described below:
Constant |
Value |
Description |
zmPercentage |
0 |
Use zoom factor set by the user with Zoom property. |
zmThumbnail |
1 |
Not applicable to this control. |
zmTwoPages |
2 |
Not applicable to this control. |
zmWholePage |
3 |
Show a whole page. |
zmPageWidth |
4 |
Show page so that it fits horizontally within the control. |
zmStretch |
5 |
Stretch page to fill the control without preserving the aspect ratio. |
Settings zmThumbnail and zmTwoPages are used only with the VSPrinter control. VSDraw does not support multi-page drawings, so these settings are automatically converted to zmWholePage.
ZoomModeSettings (Enumeration)