IGxPrinters.Item

Syntax

Item(Index: Integer): IGxPrinter;

Parameters

Index - printer index.

Description

The Item property contains the object that contains the printer, which index is passed by the Index parameter.

Example

Sub Main;

Var

Printers: IGxPrinters;

Printer: IGxPrinter;

s: String;

Begin

Printers:=New GxPrinters.Create;

Printer:=Printers.Item(0);

s:=Printer.Name;

End Sub Main;

After executing the example the "s" variable contains the name of the first printer installed in the operating system.

See also:

IGxPrinters