9 references to FromRectangle
System.Windows.Forms (4)
System\Windows\Forms\ContextMenuStrip.cs (1)
98Rectangle screenBounds = Screen.FromRectangle(bounds).Bounds;
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
73return ConstrainToBounds(Screen.FromRectangle(bounds).Bounds, bounds);
System\Windows\Forms\Screen.cs (2)
288public static Rectangle GetWorkingArea(Rectangle rect) => FromRectangle(rect).WorkingArea; 303public static Rectangle GetBounds(Rectangle rect) => FromRectangle(rect).Bounds;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
347Rectangle rectScreen = Screen.FromRectangle(ActionPanel.RectangleToScreen(editorBounds)).WorkingArea; 371Rectangle rectScreen = Screen.FromRectangle(ActionPanel.RectangleToScreen(editorBounds)).WorkingArea;
System.Windows.Forms.Tests (3)
System\Windows\Forms\ScreenTests.cs (3)
134Screen screen = Screen.FromRectangle(rectangle); 159Screen screen = Screen.FromRectangle(rectangle); 189Screen screen = Screen.FromRectangle(rectangle);