3 references to ConstrainToBounds
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ContextMenuStrip.cs (1)
110bounds = WindowsFormsUtils.ConstrainToBounds(screenBounds, bounds);
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
91return ConstrainToBounds(Screen.GetWorkingArea(bounds), bounds); 97return ConstrainToBounds(Screen.FromRectangle(bounds).Bounds, bounds);