[]
Display the page designated by page, with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of the page within the window. A null value for top specifies that the current value of that parameter is to be retained unchanged.
public class DestinationFitH : Destination, IPdfArray, IDestination
Initializes a new instance of the DestinationFitH class.
public DestinationFitH(Page page, float? top = null)
page
PageThe target page.
top
float?The top coordinate of the document window.
Initializes a new instance of the DestinationFitH 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 DestinationFitH(int pageIndex, float? pdfTop = null)
pageIndex
intThe target page index.
pdfTop
float?The top coordinate of the document window relative to page bottom.
Gets the top coordinate of the document window relative to the bottom left corner, unchanged if null.
public float? PdfTop { get; }
Gets the top coordinate of the document window, if null then unchanged.
If the target page of this destination was specified as an index (see PageIndex), then this property returns the Y coordinate relative to the page bottom. If the target page was specified as a page object (see Page), then this property returns the Y coordinate relative to the page top. See Destination description for details.
public float? Top { get; }