System.Devices.TDeviceInfo.AddDevice

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

class function AddDevice(ADeviceClass: TDeviceClass; const AID: string;
const APhysicalScreenSize, ALogicalScreenSize: TSize; APlatform: TOSVersion.TPlatform; APixelsPerInch: Integer;
AExclusive: Boolean = False): TDeviceInfo; overload;
class function AddDevice(ADeviceClass: TDeviceClass; const AID: string;
const AMinPhysicalScreenSize, AMinLogicalScreenSize, AMaxPhysicalScreenSize, AMaxLogicalScreenSize: TSize;
APlatform: TOSVersion.TPlatform; APixelsPerInch: Integer; AExclusive: Boolean = False): TDeviceInfo; overload;

C++

__classmethod TDeviceInfo* __fastcall AddDevice(TDeviceClass ADeviceClass, const System::UnicodeString AID, const System::Types::TSize &APhysicalScreenSize, const System::Types::TSize &ALogicalScreenSize, System::Sysutils::TOSVersion::TPlatform APlatform, int APixelsPerInch, bool AExclusive = false)/* overload */;
__classmethod TDeviceInfo* __fastcall AddDevice(TDeviceClass ADeviceClass, const System::UnicodeString AID, const System::Types::TSize &AMinPhysicalScreenSize, const System::Types::TSize &AMinLogicalScreenSize, const System::Types::TSize &AMaxPhysicalScreenSize, const System::Types::TSize &AMaxLogicalScreenSize, System::Sysutils::TOSVersion::TPlatform APlatform, int APixelsPerInch, bool AExclusive = false)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.Devices.pas
System.Devices.hpp
System.Devices TDeviceInfo


説明

指定されたデータでデバイスを作成すると、作成されたデバイスをデバイスのリストに追加して、作成されたデバイスを返します。

AddDevice は、次のパラメータを受け取ります:

  • ADeviceClass は、デバイス クラスです。
  • AID は、デバイス識別子です。
  • AMaxPhysicalScreenSizeAMinPhysicalScreenSize は、物理的な画面サイズの最大値最小値です。固定サイズの場合、代わりに APhysicalScreenSize を使用するか、AMaxPhysicalScreenSizeAMinPhysicalScreenSize の両方に同じ値を設定します。
  • AMaxLogicalScreenSizeAMinLogicalScreenSize は、論理画面サイズの最大値最小値です。固定サイズの場合、代わりに ALogicalScreenSize を使用するか、AMaxLogicalScreenSizeAMinLogicalScreenSize の両方に同じ値を設定します。
  • APlatform は、デバイスが実行されるオペレーティング システムです。
  • APixelsPerInch は、デバイス画面のインチごとのピクセルです。
  • AExclusive は、デバイスが同一デバイスのみと一致とするのか、より良い候補がない場合に、異なっても同様であれば一致するとみなすかを決定します。

関連項目