FMX.Printer.TPrinterDevice.Equals

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Equals(Obj: TObject): Boolean; overload; override;
function Equals(const ADriver, ADevice, APort: string): Boolean; reintroduce; overload;

C++

virtual bool __fastcall Equals(System::TObject* Obj)/* overload */;
HIDESBASE bool __fastcall Equals(const System::UnicodeString ADriver, const System::UnicodeString ADevice, const System::UnicodeString APort)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FMX.Printer.pas
FMX.Printer.hpp
FMX.Printer TPrinterDevice

Description

Checks whether the properties of the current printer device are equal to the printer device properties specified by the parameter.

Equals returns True if all the printer device properties specified by the parameter are equal to the corresponding properties of the current printer device. Otherwise, Equals returns False.

You can specify the following parameters in Equals call:

  • ADriver -- a driver name.
  • ADevice -- a device name.
  • APort -- a port name.
  • Obj -- an instance of an arbitrary object. Equals expects that the Obj value should be compatible with the TPrinterDevice.
When the Obj version is used, then ADriver, ADevice, and APort are obtained as the Driver, Device, and Port properties of the FMX.Printer.TPrinterDevice object specified by the Obj parameter.