PrintDocument for WinForms
SelectBestMeasurementDevice() メソッド


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1PrintDocument クラス : SelectBestMeasurementDevice() メソッド
Selects a device to use for C1PrintDocument.MeasurementGraphics. This method looks for a printer with a "square" resolution (i.e. with the same horizontal and vertical DPI) equal to or larger than 300 DPI. If such a printer is found, it is assigned to C1PrintDocument.MeasurementPrinterName, and C1PrintDocument.MeasurementDevice is set to MeasurementDeviceEnum.Printer. Otherwise, C1PrintDocument.MeasurementDevice is set to MeasurementDeviceEnum.Screen. The selected device's resolution is returned by C1PrintDocument.MeasurementDpi.
シンタックス
'宣言
 
Public Shared Sub SelectBestMeasurementDevice() 
'使用法
 
C1PrintDocument.SelectBestMeasurementDevice()
public static void SelectBestMeasurementDevice()
参照

C1PrintDocument クラス
C1PrintDocument メンバ