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
は、デバイスが同一デバイスのみと一致とするのか、より良い候補がない場合に、異なっても同様であれば一致するとみなすかを決定します。