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