SftPrintPreview/OCX 1.0

SftPrintPreview.Zoom Method

Softel vdm, Inc.

Redefines the preview layout.

Syntax       

VB.NET

object.Zoom(ByVal Row As Integer, ByVal Column As Integer, ByVal ZoomFactor As Integer, ByVal CenterDistanceX As Double, ByVal CenterDistanceY As Double)

VB

object.Zoom(ByVal Row As Integer, ByVal Column As Integer, ByVal ZoomFactor As Integer, ByVal CenterDistanceX As Double, ByVal CenterDistanceY As Double)

C#.NET

void object.Zoom(short Row, short Column, short ZoomFactor, double CenterDistanceX, double CenterDistanceY);

VC++

HRESULT object->Zoom(short Row, short Column, short ZoomFactor, double CenterDistanceX, double CenterDistanceY);

C

HRESULT object->raw_Zoom(short Row, short Column, short ZoomFactor, double CenterDistanceX, double CenterDistanceY);

Delphi

procedure object.Zoom(Row : Smallint, Column : Smallint, ZoomFactor : Smallint, CenterDistanceX : Double, CenterDistanceY : Double);

object

A SftPrintPreview object.

Row

Defines the relative row number of the page to make the current page.  Row and Column indicate relative page numbers, starting at the first page displayed.  The number of page rows and columns displayed is defined using the PageRows and PageGroups properties. 

Column

Defines the relative column number of the page to make the current page.  Row and Column indicate relative page numbers, starting at the first page displayed.  The number of page rows and columns displayed is defined using the PageRows and PageGroups properties.

ZoomFactor

Defines the zoom factor for display of the current page(s).  Valid values are 10 - 1000 (percent) and -1, which causes a single page display at actual size (100% zoom factor).  Alternatively, 0 can be specified to display multiple pages.  The number of page rows and columns displayed is defined using the PageRows and PageGroups properties.

CenterDistanceX

Defines the horizontal position (in inches), relative to the top, left corner of the printed/previewed page (in printer dimensions) to be centered if possible.  If -1 is specified, the top, left corner of the page is made visible.

CenterDistanceY

Defines the vertical position (in inches), relative to the top, left corner of the printed/previewed page (in printer dimensions) to be centered if possible.  If -1 is specified, the top, left corner of the page is made visible.

Comments

The Zoom method redefines the preview layout.


Feedback / comments / error reports for this topic
© 2004 - Softel vdm, Inc. - www.windowscontrols.com