/// <include file='doc\Screen.uex' path='docs/doc[@for="Screen.GetBounds1"]/*' /> /// <devdoc> /// <para> /// Retrieves the bounds of the monitor that contains the largest region of the /// specified rectangle. /// </para> /// </devdoc> public static Rectangle GetBounds(Rectangle rect) { return(Screen.FromRectangle(rect).Bounds); }
/// <include file='doc\Screen.uex' path='docs/doc[@for="Screen.GetWorkingArea1"]/*' /> /// <devdoc> /// <para> /// Retrieves the working area for the monitor that contains the largest region /// of the specified rectangle. /// /// </para> /// </devdoc> public static Rectangle GetWorkingArea(Rectangle rect) { return(Screen.FromRectangle(rect).WorkingArea); }