Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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);
 }