Пример #1
0
 internal static Rectangle ConstrainToScreenWorkingAreaBounds(Rectangle bounds)
 {
     return(WindowsFormsUtils.ConstrainToBounds(Screen.GetWorkingArea(bounds), bounds));
 }
Пример #2
0
 internal static Rectangle ConstrainToScreenBounds(Rectangle bounds)
 {
     return(WindowsFormsUtils.ConstrainToBounds(Screen.FromRectangle(bounds).Bounds, bounds));
 }