System.Devices.TDeviceInfo.AddDevice
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は、デバイス識別子です。
- AMaxPhysicalScreenSizeと- AMinPhysicalScreenSizeは、物理的な画面サイズの最大値と最小値です。固定サイズの場合、代わりに- APhysicalScreenSizeを使用するか、- AMaxPhysicalScreenSizeと- AMinPhysicalScreenSizeの両方に同じ値を設定します。
- AMaxLogicalScreenSizeと- AMinLogicalScreenSizeは、論理画面サイズの最大値と最小値です。固定サイズの場合、代わりに- ALogicalScreenSizeを使用するか、- AMaxLogicalScreenSizeと- AMinLogicalScreenSizeの両方に同じ値を設定します。
- APlatformは、デバイスが実行されるオペレーティング システムです。
- APixelsPerInchは、デバイス画面のインチごとのピクセルです。
- AExclusiveは、デバイスが同一デバイスのみと一致とするのか、より良い候補がない場合に、異なっても同様であれば一致するとみなすかを決定します。