PDFsharp-net6

PdfNamedDestinationParameters

Namespace: PdfSharp.Pdf.Advanced

Creates the named destination parameters.

public class PdfNamedDestinationParameters

Inheritance ObjectPdfNamedDestinationParameters

Methods

CreateUnchangedPosition()

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will only move to the destination page, without changing the left, top and zoom values for the displayed area.

public static PdfNamedDestinationParameters CreateUnchangedPosition()

Returns

PdfNamedDestinationParameters

CreateVerticalPosition(Nullable<Double>, Nullable<Double>)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired top value and the optional zoom value on the destination page. The left value for the displayed area and null values are retained unchanged.

public static PdfNamedDestinationParameters CreateVerticalPosition(Nullable<double> top, Nullable<double> zoom)

Parameters

top Nullable<Double>
The top value of the displayed area in PDF world space units.

zoom Nullable<Double>
Optional: The zoom value for the displayed area. 1 = 100%, 2 = 200% etc.

Returns

PdfNamedDestinationParameters

CreatePosition(Nullable<Double>, Nullable<Double>, Nullable<Double>)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired left and top value and the optional zoom value on the destination page. Null values are retained unchanged.

public static PdfNamedDestinationParameters CreatePosition(Nullable<double> left, Nullable<double> top, Nullable<double> zoom)

Parameters

left Nullable<Double>
The left value of the displayed area in PDF world space units.

top Nullable<Double>
The top value of the displayed area in PDF world space units.

zoom Nullable<Double>
Optional: The zoom value for the displayed area. 1 = 100%, 2 = 200% etc.

Returns

PdfNamedDestinationParameters

CreatePosition(XPoint, Nullable<Double>)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired left and top value and the optional zoom value on the destination page. Null values are retained unchanged.

public static PdfNamedDestinationParameters CreatePosition(XPoint position, Nullable<double> zoom)

Parameters

position XPoint
An XPoint defining the left and top value of the displayed area in PDF world space units.

zoom Nullable<Double>
Optional: The zoom value for the displayed area. 1 = 100%, 2 = 200% etc.

Returns

PdfNamedDestinationParameters

CreateFit()

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the destination page, displaying the whole page.

public static PdfNamedDestinationParameters CreateFit()

Returns

PdfNamedDestinationParameters

CreateFitHorizontally(Nullable<Double>)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired top value on the destination page. The page width is fitted to the window. Null values are retained unchanged.

public static PdfNamedDestinationParameters CreateFitHorizontally(Nullable<double> top)

Parameters

top Nullable<Double>
The top value of the displayed area in PDF world space units.

Returns

PdfNamedDestinationParameters

CreateFitVertically(Nullable<Double>)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired left value on the destination page. The page height is fitted to the window. Null values are retained unchanged.

public static PdfNamedDestinationParameters CreateFitVertically(Nullable<double> left)

Parameters

left Nullable<Double>
The left value of the displayed area in PDF world space units.

Returns

PdfNamedDestinationParameters

CreateFitRectangle(Double, Double, Double, Double)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the destination page. The given rectangle is fitted to the window.

public static PdfNamedDestinationParameters CreateFitRectangle(double left, double top, double right, double bottom)

Parameters

left Double
The left value of the rectangle to display in PDF world space units.

top Double
The top value of the rectangle to display in PDF world space units.

right Double
The right value of the rectangle to display in PDF world space units.

bottom Double
The bottom value of the rectangle to display in PDF world space units.

Returns

PdfNamedDestinationParameters

CreateFitRectangle(XRect)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the destination page. The given rectangle is fitted to the window.

public static PdfNamedDestinationParameters CreateFitRectangle(XRect rect)

Parameters

rect XRect
The XRect representing the rectangle to display in PDF world space units.

Returns

PdfNamedDestinationParameters

CreateFitRectangle(XPoint, XPoint)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the destination page. The given rectangle is fitted to the window.

public static PdfNamedDestinationParameters CreateFitRectangle(XPoint point1, XPoint point2)

Parameters

point1 XPoint
The first XPoint representing the rectangle to display in PDF world space units.

point2 XPoint
The second XPoint representing the rectangle to display in PDF world space units.

Returns

PdfNamedDestinationParameters

CreateFitBoundingBox()

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the destination page. The page’s bounding box is fitted to the window.

public static PdfNamedDestinationParameters CreateFitBoundingBox()

Returns

PdfNamedDestinationParameters

CreateFitBoundingBoxHorizontally(Nullable<Double>)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired top value on the destination page. The page’s bounding box width is fitted to the window. Null values are retained unchanged.

public static PdfNamedDestinationParameters CreateFitBoundingBoxHorizontally(Nullable<double> top)

Parameters

top Nullable<Double>
The top value of the displayed area in PDF world space units.

Returns

PdfNamedDestinationParameters

CreateFitBoundingBoxVertically(Nullable<Double>)

Creates a PdfNamedDestinationParameters object for a named destination. Moving to this destination will move to the desired left value on the destination page. The page’s bounding box height is fitted to the window. Null values are retained unchanged.

public static PdfNamedDestinationParameters CreateFitBoundingBoxVertically(Nullable<double> left)

Parameters

left Nullable<Double>
The left value of the displayed area in PDF world space units.

Returns

PdfNamedDestinationParameters

ToString()

Returns the parameters string for the named destination.

public string ToString()

Returns

String