Click or drag to resize
Pdftools logo

FitRectangleDestination Class

A destination that fits a specified area of a page into the viewport.

Note: Many PDF viewers support different viewing modes like "fit page" or "fit width". A FitRectangleDestination will change the current viewing mode to standard mode in those viewers, i.e. deactivate any special mode like "fit page" or "fit width".

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.NavigationFitRectangleDestination

Namespace: PdfTools.Toolbox.Pdf.Navigation
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.0.0+fdabb036503e9f99735634a6d4f5be875399e9f5
Syntax
C#
public class FitRectangleDestination : DirectDestination

The FitRectangleDestination type exposes the following members.

Properties
 NameDescription
Public propertyPage The page in the document that this destination is pointing to.
(Inherited from DirectDestination)
Public propertyRectangle The rectangle that is displayed in the viewport.
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 FitRectangleDestination

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