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

TScreen.MonitorFromRect

Find the monitor containing (most of) the given screen coordinates.

Declaration

Source position: forms.pp line 1056

public function TScreen.MonitorFromRect(

  const Rect: TRect;

  MonitorDefault: TMonitorDefaultTo = mdNearest

):TMonitor;

Arguments

Rect

  

The screen coordinates to find.

MonitorDefault

  

What to return when no monitor was found.

Function result

The monitor found.

See also

TScreen.MonitorFromPoint

  

Find the monitor containing the given screen coordinates.