Screen::FromRectangle Method (Rectangle)
.NET Framework (current version)
Retrieves a Screen for the display that contains the largest portion of the rectangle.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- rect
-
Type:
System.Drawing::Rectangle
A Rectangle that specifies the area for which to retrieve the display.
Return Value
Type: System.Windows.Forms::Screen^A Screen for the display that contains the largest region of the specified rectangle. In multiple display environments where no display contains the rectangle, the display closest to the rectangle is returned.
.NET Framework
Available since 1.1
Available since 1.1
Show: