Retrieves a Screen for the monitor that contains the largest region of the rectangle.
[Visual Basic] Public Shared Function FromRectangle( _ ByVal rect As Rectangle _ ) As Screen [C#] public static Screen FromRectangle( Rectangle rect ); [C++] public: static Screen* FromRectangle( Rectangle rect ); [JScript] public static function FromRectangle( rect : Rectangle ) : Screen;
A Screen for the monitor that contains the largest region of the specified rectangle. If no monitor contains the rectangle, then the monitor closest to the rectangle is returned.
Screen Class | Screen Members | System.WinForms Namespace | FromControl | FromHandle | FromPoint