3 references to ConstrainToBounds
System.Windows.Forms (3)
System\Windows\Forms\ContextMenuStrip.cs (1)
108bounds = WindowsFormsUtils.ConstrainToBounds(screenBounds, bounds);
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
65return ConstrainToBounds(Screen.GetWorkingArea(bounds), bounds); 73return ConstrainToBounds(Screen.FromRectangle(bounds).Bounds, bounds);