แก้ไข

แชร์ผ่าน


Screen.FromRectangle(Rectangle) Method

Definition

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

public:
 static System::Windows::Forms::Screen ^ FromRectangle(System::Drawing::Rectangle rect);
public static System.Windows.Forms.Screen FromRectangle (System.Drawing.Rectangle rect);
static member FromRectangle : System.Drawing.Rectangle -> System.Windows.Forms.Screen
Public Shared Function FromRectangle (rect As Rectangle) As Screen

Parameters

rect
Rectangle

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

Returns

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.

Applies to

See also