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