FlexReport for WinForms
FromDevice メソッド (GraphicsHolder)


C1.Win.Document.10 アセンブリ > C1.Win.Document 名前空間 > GraphicsHolder クラス : FromDevice メソッド
使用するデバイスのタイプ(プリンタまたは画面)。
プリンタの名前。
C1Document または C1FlexReport のオブジェクトの測定に使用される実際のデバイス(プリンタまたは画面)。
実際のプリンタ名。
渡すパラメータに応じて、プリンタまたは画面デバイスコンテキストからグラフィックホルダを作成します。 ホルダが破棄されると、グラフィックとデバイスコンテキストの両方が解放されます(デバイスコンテキストの DeleteDC が呼び出される)。 printerName が null である、または無効なプリンタ名を指定している場合は、 使用可能なプリンタのリストから自動的にプリンタが選択されます。 プリンタがインストールされていない場合は、FromScreen メソッドが呼び出されます。
シンタックス
'宣言
 
Public Shared Function FromDevice( _
   ByVal device As MeasurementDevice, _
   ByVal printerName As System.String, _
   ByRef actualDevice As MeasurementDevice, _
   ByRef actualPrinterName As System.String _
) As GraphicsHolder
'使用法
 
Dim device As MeasurementDevice
Dim printerName As System.String
Dim actualDevice As MeasurementDevice
Dim actualPrinterName As System.String
Dim value As GraphicsHolder
 
value = GraphicsHolder.FromDevice(device, printerName, actualDevice, actualPrinterName)
public static GraphicsHolder FromDevice( 
   MeasurementDevice device,
   System.string printerName,
   out MeasurementDevice actualDevice,
   out System.string actualPrinterName
)

パラメータ

device
使用するデバイスのタイプ(プリンタまたは画面)。
printerName
プリンタの名前。
actualDevice
C1Document または C1FlexReport のオブジェクトの測定に使用される実際のデバイス(プリンタまたは画面)。
actualPrinterName
実際のプリンタ名。

戻り値の型

グラフィックホルダの新しいインスタンス。
参照

参照

GraphicsHolder クラス
GraphicsHolder メンバ