36 references to WorkingArea
System.Windows.Forms (33)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6421
Rectangle rectScreen = Screen.FromControl(this).
WorkingArea
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1443
Rectangle rectScreen = Screen.FromControl(EditTextBox).
WorkingArea
;
System\Windows\Forms\Form.cs (3)
3723
Rectangle screenRect = desktop.
WorkingArea
;
3908
Rectangle screenRect = desktop.
WorkingArea
;
3964
Rectangle screenRect = desktop.
WorkingArea
;
System\Windows\Forms\Screen.cs (4)
283
public static Rectangle GetWorkingArea(Point pt) => FromPoint(pt).
WorkingArea
;
288
public static Rectangle GetWorkingArea(Rectangle rect) => FromRectangle(rect).
WorkingArea
;
293
public 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)
1327
left = (rect.left < screen.
WorkingArea
.Left) ? screen.
WorkingArea
.Left : rect.left,
1328
top = (rect.top < screen.
WorkingArea
.Top) ? screen.
WorkingArea
.Top : rect.top,
1329
right = (rect.right > screen.
WorkingArea
.Right) ? screen.
WorkingArea
.Right : rect.right,
1330
bottom = (rect.bottom > screen.
WorkingArea
.Bottom) ? screen.
WorkingArea
.Bottom : rect.bottom
1927
if (moveToLocation.X + tipSize.Width > screen.
WorkingArea
.Right)
1929
moveToLocation.X = screen.
WorkingArea
.Right - tipSize.Width;
1932
if (moveToLocation.X < screen.
WorkingArea
.Left)
1934
moveToLocation.X = screen.
WorkingArea
.Left;
1938
if (moveToLocation.Y + tipSize.Height > screen.
WorkingArea
.Bottom)
1940
moveToLocation.Y = screen.
WorkingArea
.Bottom - tipSize.Height;
2082
? Math.Min(currentTooltipSize.Width - 2 * BalloonOffsetX, screen.
WorkingArea
.Width)
2083
: Math.Min(currentTooltipSize.Width, screen.
WorkingArea
.Width);
2181
if (wp->y + wp->cy + currentCursor.Size.Height - currentCursor.HotSpot.Y > screen.
WorkingArea
.Bottom)
2191
if (wp->x + wp->cx > screen.
WorkingArea
.Right)
2193
wp->x = screen.
WorkingArea
.Right - wp->cx;
2200
if (wp->x + wp->cx > screen.
WorkingArea
.Right)
2202
wp->x = screen.
WorkingArea
.Right - wp->cx;
2206
if (wp->y + wp->cy > screen.
WorkingArea
.Bottom)
2208
wp->y = screen.
WorkingArea
.Bottom - wp->cy;
2234
PInvokeCore.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, screen.
WorkingArea
.Width);
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
234
Rectangle rectScreen = Screen.FromPoint(rectangleAnchor.Location).
WorkingArea
;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
344
Rectangle rectScreen = Screen.FromRectangle(ActionPanel.RectangleToScreen(editorBounds)).
WorkingArea
;
368
Rectangle rectScreen = Screen.FromRectangle(ActionPanel.RectangleToScreen(editorBounds)).
WorkingArea
;