←Select platform

IsDestinationRelative Property

Summary

Gets or sets a value that indicate whether the destination print rectangle is in relative units.

Syntax

C#
VB
C++
public bool IsDestinationRelative {get; set;}
Public Property IsDestinationRelative As Boolean
public: 
property bool IsDestinationRelative { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

true if the values in Destination are in relative units, otherwise; false. Default value is false.

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