Click or drag to resize

PdfDestinationSetView Method

Sets the view and the view's parameters where parameters represent the following values depending on the viewType parameter:

FitRectangle
Left, Bottom, Right and Top.
LeftTopZoom
Left, Top and Zoom.
FitPageVertical and FitContentVertical
Left.
FitPageHorizontal and FitContentHorizontal
Top.
FitPage and FitContent
None.

Namespace:  GemBox.Pdf
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 10.0.35.1002
Syntax
public void SetView(
	PdfDestinationViewType viewType,
	params Nullable<double>[] parameters
)

Parameters

viewType
Type: GemBox.PdfPdfDestinationViewType
Type of the view.
parameters
Type: SystemNullableDouble
The parameters of the view.
Exceptions
ExceptionCondition
ArgumentNullExceptionparameters is when they are required.
ArgumentExceptionThe number of passed parameters is not according to the documentation.
See Also