SetFitMode Method

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image
Sets how the document will scale to fit the size of the scrollviewer's viewport.

Namespace: PDFTron.SilverDox.Controls
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010

Syntax

C#
public void SetFitMode(
	DocumentViewer..::..FitModes fitModeWidth,
	DocumentViewer..::..FitModes fitModeHeight
)
Visual Basic
Public Sub SetFitMode ( _
	fitModeWidth As DocumentViewer..::..FitModes, _
	fitModeHeight As DocumentViewer..::..FitModes _
)
Visual C++
public:
void SetFitMode(
	DocumentViewer..::..FitModes fitModeWidth, 
	DocumentViewer..::..FitModes fitModeHeight
)

Parameters

fitModeWidth
Type: PDFTron.SilverDox.Controls..::..DocumentViewer..::..FitModes
Controls if the document's Zoom property will be adjusted so that the width of the current page or panel will exactly fit into the available space.
fitModeHeight
Type: PDFTron.SilverDox.Controls..::..DocumentViewer..::..FitModes
Controls if the document's Zoom property will be adjusted so that the height of the current page or panel will exactly fit into the available space.

Remarks

If both fitModeWidth and fitModeHeight are set, the smaller of the two zoom factors will be used. This allows for "fit page" behavior.

See Also