[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# TMonitor

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Provides information about a physical monitor.

## Declaration

Source position: forms.pp line 1059

`type TMonitor = class(TObject)`
`public`
`property Handle: HMONITOR; [r]` |  | Handle which identifies this monitor to the system.
`property MonitorNum: Integer; [r]` |  | Index of the monitor in the TScreen.Monitors list.
`property Left: Integer; [r]` |  | The left-most screen coordinate for the display.
`property Height: Integer; [r]` |  | The height for the display.
`property Top: Integer; [r]` |  | The top-most screen coordinate for the display.
`property Width: Integer; [r]` |  | The width for the display.
`property BoundsRect: TRect; [r]` |  | Rectangle with the dimensions for the monitor.
`property WorkareaRect: TRect; [r]` |  | The usable display area on the monitor excluding the system task bar.
`property Primary: Boolean; [r]` |  | Contains True if this is the primary monitor for the system.
`property PixelsPerInch: Integer; [r]` |  | Contains the Pixels Per Inch (or display density) for the monitor.
`end;`

## Inheritance

`TMonitor` |  | Provides information about a physical monitor.
`TObject`

## Description

Monitor information is retrieved dynamically from the Operating System. This ensures that any changes to the installed hardware devices or their configuration are taken into account. TMonitor has properties that reflect its dimensions, use as the primary monitor, and its display density (or Pixels per Inch).

TMonitor is the type returned when reading the TScreen.Monitors property. TMonitor is the type used to implement the TCustomForm.Monitor property.

## See also

TCustomForm.Monitor |  | Contains the Monitor where the form is shown.
TScreen.Monitors |  | Provides indexed access to the available monitors in the class instance.