36 references to WorkingArea
System.Windows.Forms (33)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6421Rectangle rectScreen = Screen.FromControl(this).WorkingArea;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1443Rectangle rectScreen = Screen.FromControl(EditTextBox).WorkingArea;
System\Windows\Forms\Form.cs (3)
3723Rectangle screenRect = desktop.WorkingArea; 3908Rectangle screenRect = desktop.WorkingArea; 3964Rectangle screenRect = desktop.WorkingArea;
System\Windows\Forms\Screen.cs (4)
283public static Rectangle GetWorkingArea(Point pt) => FromPoint(pt).WorkingArea; 288public static Rectangle GetWorkingArea(Rectangle rect) => FromRectangle(rect).WorkingArea; 293public static Rectangle GetWorkingArea(Control ctl) => FromControl(ctl).WorkingArea; 345=> $"{GetType().Name}[Bounds={_bounds} WorkingArea={WorkingArea} Primary={_primary} DeviceName={_deviceName}";
System\Windows\Forms\ToolTip\ToolTip.cs (24)
1331left = (rect.left < screen.WorkingArea.Left) ? screen.WorkingArea.Left : rect.left, 1332top = (rect.top < screen.WorkingArea.Top) ? screen.WorkingArea.Top : rect.top, 1333right = (rect.right > screen.WorkingArea.Right) ? screen.WorkingArea.Right : rect.right, 1334bottom = (rect.bottom > screen.WorkingArea.Bottom) ? screen.WorkingArea.Bottom : rect.bottom 1931if (moveToLocation.X + tipSize.Width > screen.WorkingArea.Right) 1933moveToLocation.X = screen.WorkingArea.Right - tipSize.Width; 1936if (moveToLocation.X < screen.WorkingArea.Left) 1938moveToLocation.X = screen.WorkingArea.Left; 1942if (moveToLocation.Y + tipSize.Height > screen.WorkingArea.Bottom) 1944moveToLocation.Y = screen.WorkingArea.Bottom - tipSize.Height; 2086? Math.Min(currentTooltipSize.Width - 2 * BalloonOffsetX, screen.WorkingArea.Width) 2087: Math.Min(currentTooltipSize.Width, screen.WorkingArea.Width); 2185if (wp->y + wp->cy + currentCursor.Size.Height - currentCursor.HotSpot.Y > screen.WorkingArea.Bottom) 2195if (wp->x + wp->cx > screen.WorkingArea.Right) 2197wp->x = screen.WorkingArea.Right - wp->cx; 2204if (wp->x + wp->cx > screen.WorkingArea.Right) 2206wp->x = screen.WorkingArea.Right - wp->cx; 2210if (wp->y + wp->cy > screen.WorkingArea.Bottom) 2212wp->y = screen.WorkingArea.Bottom - wp->cy; 2238PInvokeCore.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, screen.WorkingArea.Width);
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
234Rectangle rectScreen = Screen.FromPoint(rectangleAnchor.Location).WorkingArea;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
344Rectangle rectScreen = Screen.FromRectangle(ActionPanel.RectangleToScreen(editorBounds)).WorkingArea; 368Rectangle rectScreen = Screen.FromRectangle(ActionPanel.RectangleToScreen(editorBounds)).WorkingArea;