Table of Contents

Method SetFitWidth

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

SetFitWidth()

Sets the zoom type to use when displaying the page in the view to FitWidth.

public void SetFitWidth()

Remarks

The target page will be displayed starting from the top edge of the page.

SetFitWidth(double)

Sets the zoom type to use when displaying the page in the view to FitWidth and the Top property to the specified value.

public void SetFitWidth(double top)

Parameters

top double

The y-coordinate of the upper-left corner of the page to be positioned at the upper-left corner of the window when this view gets displayed.

The coordinate is relative to the bottom edge of the page. I.e. vertical offset 0 means "display bottom edge of the Page at the top edge of the window", which effectively means "display the top edge of the next page at the top edge of the window".

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

Remarks

The target page will be displayed starting from top offset relative to the bottom edge of the page.