[]
Display the page designated by page, 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. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension.
public class DestinationFitR : Destination, IPdfArray, IDestination
Initializes a new instance of the DestinationFitR class.
Note that if a destination is created using this constructor then all Y coordinates should be specified relative to the bottom of the page, see Destination description for details.
public DestinationFitR(Page page, RectangleF bounds)
page
PageThe target page.
bounds
System.Drawing.RectangleFThe rectangle to fit (relative to the top left corner).
Initializes a new instance of the DestinationFitR class.
Note that if a destination is created using this constructor then all Y coordinates should be specified relative to the bottom of the page, see Destination description for details.
public DestinationFitR(int pageIndex, RectangleF pdfBounds)
pageIndex
intThe target page index.
pdfBounds
System.Drawing.RectangleFThe rectangle to fit relative to the bottom left corner.
Gets the rectangle to fit.
If the target page of this destination was specified as an index (see PageIndex), then this property returns a rectangle relative to the bottom left corner. If the target page was specified as a page object (see Page), then this property returns a rectangle relative to the top left corner. See Destination description for details.
public RectangleF Bounds { get; }
Gets the rectangle to fit relative to the bottom left corner.
public RectangleF PdfBounds { get; }