Note: This API is now obsolete.

Sets the zoom type to use when displaying the page in the view to FitRect and the Left, Top, Width and Height properties to the corresponding properties of the specified rectangle.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
[ObsoleteAttribute("This method will be removed in the next release of Docotic.Pdf. Please use PdfDocumentView.SetFitRect(PdfBox) method instead.")]
public void SetFitRect(
	PdfRectangle rect
)
VB
<ObsoleteAttribute("This method will be removed in the next release of Docotic.Pdf. Please use PdfDocumentView.SetFitRect(PdfBox) method instead.")>
Public Sub SetFitRect ( 
	rect As PdfRectangle
)

Parameters

rect
Type: BitMiracle.Docotic.Pdf.PdfRectangle

The PdfRectangle structure that specifies the new values for Left, Top, Width and Height properties.

The vertical coordinates of the rectangle are relative to the bottom edge of the page.

Use the following formula to calculate vertical offset relative to the top edge of the page: (Page.Height - Top)

See Also