Screen::GetBounds Method (Rectangle)
.NET Framework (current version)
Retrieves the bounds of the display that contains the largest portion of the specified 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 bounds.
Return Value
Type: System.Drawing::RectangleA Rectangle that specifies the bounds of the display that contains the specified rectangle. In multiple display environments where no monitor contains the specified rectangle, the monitor closest to the rectangle is returned.
.NET Framework
Available since 1.1
Available since 1.1
Show: