Namespace: PdfSharp.Pdf.Advanced
Creates the named destination parameters.
public class PdfNamedDestinationParameters
Inheritance Object → PdfNamedDestinationParameters
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()
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)
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.
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)
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.
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)
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.
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()
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)
top
Nullable<Double>
The top value of the displayed area in PDF world space units.
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)
left
Nullable<Double>
The left value of the displayed area in PDF world space units.
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)
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.
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)
rect
XRect
The XRect representing the rectangle to display in PDF world space units.
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)
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.
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()
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)
top
Nullable<Double>
The top value of the displayed area in PDF world space units.
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)
left
Nullable<Double>
The left value of the displayed area in PDF world space units.
Returns the parameters string for the named destination.
public string ToString()