 | PdfDestinationCreateFitR Method |
Create new destination that display the page designated by pageIndex,
with its contents magnified just enough to fit the rectangle specified by the coordinates
left, bottom, right, and top
entirely within the window both horizontally and vertically.
Namespace: Patagames.Pdf.NetAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static PdfDestination CreateFitR(
PdfDocument document,
int pageIndex,
float? left = null,
float? bottom = null,
float? right = null,
float? top = null
)
Public Shared Function CreateFitR (
document As PdfDocument,
pageIndex As Integer,
Optional left As Single? = Nothing,
Optional bottom As Single? = Nothing,
Optional right As Single? = Nothing,
Optional top As Single? = Nothing
) As PdfDestination
public:
static PdfDestination^ CreateFitR(
PdfDocument^ document,
int pageIndex,
Nullable<float> left = nullptr,
Nullable<float> bottom = nullptr,
Nullable<float> right = nullptr,
Nullable<float> top = nullptr
)
static member CreateFitR :
document : PdfDocument *
pageIndex : int *
?left : Nullable<float32> *
?bottom : Nullable<float32> *
?right : Nullable<float32> *
?top : Nullable<float32>
(* Defaults:
let _left = defaultArg left null
let _bottom = defaultArg bottom null
let _right = defaultArg right null
let _top = defaultArg top null
*)
-> PdfDestination
public static PdfDestination CreateFitR(
PdfDocument document,
int pageIndex,
float? left = null,
float? bottom = null,
float? right = null,
float? top = null
)
Patagames.Pdf.Net.PdfDestination.CreateFitR = function(document, pageIndex, left, bottom, right, top);
Parameters
- document PdfDocument
- Document which contains this destination. Null for remote document.
- pageIndex Int32
- The zero-based index of the page to be displayed by this destination.
- left NullableSingle (Optional)
- The x-coordinate of the left edge.
- bottom NullableSingle (Optional)
- The y-coordinate of the bottom edge.
- right NullableSingle (Optional)
- The x-coordinate of the right edge.
- top NullableSingle (Optional)
- The y-coordinate of the top edge.
Return Value
PdfDestinationAn instance of the
PdfDestination class initialized with the specified parameters.
Remarks
If the required horizontal and vertical magnification factors are different, use the smaller
the two, centering the rectangle within the window in the other dimension.
A null value for any of the parameters may result in unpredictable behavior.
See Also