Leadtools.Windows.Printing Namespace > PrinterHelper Class : IsDestinationRelative Property |
public bool IsDestinationRelative {get; set;}
'Declaration Public Property IsDestinationRelative As Boolean
'Usage Dim instance As PrinterHelper Dim value As Boolean instance.IsDestinationRelative = value value = instance.IsDestinationRelative
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.
For an example, refer to PrinterHelper.