System.Windows.Forms.Screen.FromRectangle Method

Retrieves a System.Windows.Forms.Screen for the display that contains the largest portion of the rectangle.

Syntax

public static Screen FromRectangle (System.Drawing.Rectangle rect)

Parameters

rect
A System.Drawing.Rectangle that specifies the area for which to retrieve the display.

Returns

A System.Windows.Forms.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.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0