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