←Select platform

Destination Property

Summary

Gets or sets the destination print rectangle.

Syntax

C#
VB
C++
public Rect Destination {get; set;}
Public Property Destination As Rect
public: 
property Rect Destination { 
   Rect get(); 
   void set (    Rect ); 
} 

Property Value

A System.Windows.Rect that specifies the destination print rectangle. Default value is Rect(0, 0, 1, 1).

Remarks

Destination can be in relative or absolute units depending on the value of the IsDestinationRelative property:

  • When the value of IsDestinationRelative is true (the default), then the value of Destination contains relative values for the printable area going from 0 to 1 both horizontally and vertically. For example, a value of (0, 0, 1, 1) means the whole printable area. A value of (0.25, 0.5, 0.3, 0.6) means the printable area starts from 1/4 of the page and extends 1/3 of the page horizontally and starts from 1/2 of the page and extends 1/6 of the page vertically.

  • When the value of IsDestinationRelative is false, then the value of Destination contains physical units in page coordinates. Similar to PrintDialog.PrintableAreaWidth and PrintDialog.PrintableAreaHeight in WPF or PrintPageEventArgs.PrintableArea in Silverlight 4 or later.

Example

For an example, refer to PrinterHelper.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Windows.Controls Assembly
Click or drag to resize