예제 #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));
 }