Gets or sets the type of device used to provide Graphics used to measure/calculate layouts of C1PrintDocument objects. If this property is set to Printer, MeasurementPrinterName specifies the printer.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public static MeasurementDeviceEnum MeasurementDevice { get; set; }
Visual Basic
Public Shared Property MeasurementDevice As MeasurementDeviceEnum
	Get
	Set

Examples

The following code sets the screen as a measurement device:

Copy CodeVisual Basic
C1.C1Preview.C1PrintDocument.MeasurementDevice = C1.C1Preview.MeasurementDeviceEnum.Screen
Copy CodeC#
C1.C1Preview.C1PrintDocument.MeasurementDevice = C1.C1Preview.MeasurementDeviceEnum.Screen;

See Also