Item(Index: Integer): IGxPrinter;
Index. Printer index.
The Item property returns the printer, which index is sent by the input parameter.
Sub UserProc;
Var
Printers: IGxPrinters;
Printer: IGxPrinter;
i, c: Integer;
Begin
Printers := New GxPrinters.Create;
c := Printers.Count;
For i := 0 To c - 1 Do
Printer := Printers.Item(i);
Debug.WriteLine(Printer.Name);
End For;
End Sub UserProc;
After executing the example the development environment console displays names of all printers installed in the operating system.
See also: