Item(Index: Integer): IGxPrinter;
Index - printer index.
The Item property contains the object that contains the printer, which index is passed by the Index parameter.
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: