Click or drag to resize
Pdftools logo

FitHeightDestination Class

A destination fits the height of a page into the viewport.

Note: Many PDF viewers support different viewing modes like "fit page" or "fit width". A FitHeightDestination will change the current viewing mode to "fit height" in those viewers.

Changing the viewing mode is usually not very well received by users and thus a LocationZoomDestination should be preferred in most cases.

Inheritance Hierarchy
SystemObject
  PdfTools.Toolbox.InternalNativeBase
    PdfTools.Toolbox.InternalNativeObject
      PdfTools.Toolbox.Pdf.NavigationDestination
        PdfTools.Toolbox.Pdf.NavigationDirectDestination
          PdfTools.Toolbox.Pdf.NavigationFitHeightDestination

Namespace: PdfTools.Toolbox.Pdf.Navigation
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.2.0+708f7116d933787a0712d56133e4c2c9bf21e5e3
Syntax
C#
public class FitHeightDestination : DirectDestination

The FitHeightDestination type exposes the following members.

Properties
 NameDescription
Public propertyFitActualContent

If , the viewport is fitted to the width of the actual content of the page, instead of the width of the page.

Note: Many PDF viewers simply ignore this property and always treat it as , i.e. switching to "fit page" mode anyway.

Public propertyPage The page in the document that this destination is pointing to.
(Inherited from DirectDestination)
Public propertyTarget

The target destination

For direct destinations, this is just the destination itself.
(Inherited from Destination)
Top
Methods
 NameDescription
Public methodStatic memberCreate

Create a new FitHeightDestination

The returned object is not yet used on any page, but it is associated with the given target document.
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also