New to Telerik Document ProcessingStart a free 30-day trial

Destination that scales a specified page rectangle to fit inside the viewport while preserving aspect ratio.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Navigation

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class RectangleFit : Destination, IFixedDocumentElement

Inheritance: objectFixedDocumentElementBaseDestinationRectangleFit

Implements: IFixedDocumentElement

Inherited Members Destination.PageFixedDocumentElementBase.Parent

Constructors

Initializes a destination that zooms to fit a given rectangle on the page within the viewport, preserving aspect ratio.

C#
public RectangleFit()

Properties

Gets or sets the rectangle's bottom Y coordinate in page units. Coordinates are in document space with origin at the top-left. X increases to the right and Y increases downward.

C#
public double? Bottom { get; set; }
Property Value:

The bottom coordinate value, or null if not specified.

Gets or sets the rectangle's left X coordinate in page units. Coordinates are in document space with origin at the top-left. X increases to the right and Y increases downward.

C#
public double? Left { get; set; }
Property Value:

The left coordinate value, or null if not specified.

Gets or sets the rectangle's right X coordinate in page units. Coordinates are in document space with origin at the top-left. X increases to the right and Y increases downward.

C#
public double? Right { get; set; }
Property Value:

The right coordinate value, or null if not specified.

Gets or sets the rectangle's top Y coordinate in page units. Coordinates are in document space with origin at the top-left. X increases to the right and Y increases downward.

C#
public double? Top { get; set; }
Property Value:

The top coordinate value, or null if not specified.