66 instantiations of RECT
System.Windows.Forms (12)
System\Windows\Forms\Control.cs (1)
10229
RECT rect =
new
(size);
System\Windows\Forms\Control.MetafileDCWrapper.cs (1)
39
_destRect =
new
(size);
System\Windows\Forms\Controls\ListView\ListView.cs (3)
3597
RECT itemrect =
new
()
3626
RECT itemrect =
new
()
3673
RECT itemrect =
new
()
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
414
RECT posRect =
new
(0, 0, lprcPosRect->right - lprcPosRect->left, lprcPosRect->bottom - lprcPosRect->top);
System\Windows\Forms\Form.cs (1)
3292
RECT result =
new
(clientSize);
System\Windows\Forms\Help\Help.cs (1)
83
rcMargins = new
RECT
(-1, -1, -1, -1), // Ignore
System\Windows\Forms\Rendering\ControlPaint.cs (2)
1366
RECT rcCheck =
new
(rectangle.Size);
1436
RECT rcFrame =
new
(0, 0, width, height);
System\Windows\Forms\Rendering\TextExtensions.cs (1)
244
RECT rect =
new
(proposedSize);
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1325
RECT visibleRect = new
RECT
System.Windows.Forms.Primitives.TestUtilities (1)
Win32\WindowClass.cs (1)
13
=>
new
(PInvoke.CW_USEDEFAULT, PInvoke.CW_USEDEFAULT, PInvoke.CW_USEDEFAULT, PInvoke.CW_USEDEFAULT);
System.Windows.Forms.Tests (52)
System\Windows\Forms\ListBoxTests.cs (2)
5387
yield return new object[] { new
RECT
(1, 2, 3, 4), new Rectangle(1, 2, 2, 2) };
5442
*pRect = new
RECT
(1, 2, 3, 4);
System\Windows\Forms\ListViewInsertionMarkTests.cs (2)
218
yield return new object[] { new
RECT
(1, 2, 3, 4), new Rectangle(1, 2, 2, 2) };
272
*pRect = new
RECT
(1, 2, 3, 4);
System\Windows\Forms\ListViewTests.cs (2)
4146
yield return new object[] { new
RECT
(1, 2, 3, 4), new Rectangle(1, 2, 2, 2) };
4203
*pRect = new
RECT
(1, 2, 3, 4);
System\Windows\Forms\MonthCalendarTests.cs (6)
2446
yield return new object[] { new
RECT
(0, 0, 0, 0), Size.Empty };
2447
yield return new object[] { new
RECT
(1, 2, 3, 4), new Size(3, 4) };
2448
yield return new object[] { new
RECT
(1, 2, 1, 6), new Size(1, 6) };
2449
yield return new object[] { new
RECT
(1, 2, 6, 1), new Size(6, 1) };
2450
yield return new object[] { new
RECT
(1, 2, 6, 6), new Size(6, 6) };
2451
yield return new object[] { new
RECT
(1, 2, 30, 40), new Size(30, 40) };
System\Windows\Forms\TabControlTests.cs (2)
3715
yield return new object[] { new
RECT
(1, 2, 3, 4), new Rectangle(1, 2, 2, 2) };
3772
*pRect = new
RECT
(1, 2, 3, 4);
System\Windows\Forms\ToolStripTests.Rendering.cs (7)
38
new
(0, 0, 1, 1),
39
new
(bounds.Width - 3, 0, bounds.Width, 1),
40
new
(bounds.Width - 1, 1, bounds.Width, 3),
41
new
(0, bounds.Height - 2, 1, bounds.Height - 1),
42
new
(bounds.Width - 1, bounds.Height - 2, bounds.Width, bounds.Height - 1),
43
new
(0, bounds.Height - 1, 2, bounds.Height),
44
new
(bounds.Width - 2, bounds.Height - 1, bounds.Width, bounds.Height)
System\Windows\Forms\TreeNodeTests.cs (31)
494
yield return new object[] { new
RECT
(1, 2, 3, 4), new Rectangle(1, 2, 2, 2) };
496
yield return new object[] { new
RECT
(0, 1, 3, 4), new Rectangle(0, 1, 3, 3) };
497
yield return new object[] { new
RECT
(1, 0, 3, 4), new Rectangle(1, 0, 2, 4) };
498
yield return new object[] { new
RECT
(1, 2, 0, 4), new Rectangle(1, 2, -1, 2) };
499
yield return new object[] { new
RECT
(1, 2, 3, 0), new Rectangle(1, 2, 2, -2) };
500
yield return new object[] { new
RECT
(0, 0, 3, 4), new Rectangle(0, 0, 3, 4) };
502
yield return new object[] { new
RECT
(-1, 0, 3, 4), new Rectangle(-1, 0, 4, 4) };
503
yield return new object[] { new
RECT
(1, -2, 3, 4), new Rectangle(1, -2, 2, 6) };
504
yield return new object[] { new
RECT
(1, 2, -3, 4), new Rectangle(1, 2, -4, 2) };
505
yield return new object[] { new
RECT
(1, 2, 3, -4), new Rectangle(1, 2, 2, -6) };
506
yield return new object[] { new
RECT
(-3, -4, -1, -2), new Rectangle(-3, -4, 2, 2) };
508
yield return new object[] { new
RECT
(1, 118, 3, 4), new Rectangle(1, 118, 2, -114) };
509
yield return new object[] { new
RECT
(1, 117, 3, 4), new Rectangle(1, 117, 2, -113) };
510
yield return new object[] { new
RECT
(94, 2, 3, 4), new Rectangle(94, 2, -91, 2) };
511
yield return new object[] { new
RECT
(93, 2, 3, 4), new Rectangle(93, 2, -90, 2) };
1938
yield return new object[] { new
RECT
(1, 2, 3, 4), true };
1940
yield return new object[] { new
RECT
(0, 1, 3, 4), true };
1941
yield return new object[] { new
RECT
(1, 0, 3, 4), true };
1942
yield return new object[] { new
RECT
(1, 2, 0, 4), false };
1943
yield return new object[] { new
RECT
(1, 2, 3, 0), false };
1944
yield return new object[] { new
RECT
(0, 0, 3, 4), true };
1946
yield return new object[] { new
RECT
(-1, 0, 3, 4), true };
1947
yield return new object[] { new
RECT
(1, -2, 3, 4), true };
1948
yield return new object[] { new
RECT
(1, 2, -3, 4), false };
1949
yield return new object[] { new
RECT
(1, 2, 3, -4), false };
1950
yield return new object[] { new
RECT
(-3, -4, -1, -2), false };
1952
yield return new object[] { new
RECT
(1, 118, 3, 4), false };
1953
yield return new object[] { new
RECT
(1, 117, 3, 4), false };
1954
yield return new object[] { new
RECT
(94, 2, 3, 4), true };
1955
yield return new object[] { new
RECT
(93, 2, 3, 4), true };
4941
*pRect = new
RECT
(1, 2, 3, 4);
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\DpiMessageHelper.cs (1)
23
RECT suggestedRect =
new
(0,
310 references to RECT
System.Drawing.Common.Tests (1)
Helpers.cs (1)
137
PInvokeCore.GetClientRect(hwnd, out
RECT
rect);
System.Private.Windows.Core (11)
Windows\Win32\Graphics\Gdi\HRGN.cs (2)
8
public unsafe
RECT
[] GetRegionRects()
25
RECT
[] result = RGNDATAHEADER.GetRegionRects((RGNDATAHEADER*)b);
Windows\Win32\Graphics\Gdi\RGNDATAHEADER.cs (2)
8
public static unsafe
RECT
[] GetRegionRects(RGNDATAHEADER* regionData)
16
return new Span<
RECT
>((byte*)regionData + regionData->dwSize, (int)regionData->nCount).ToArray();
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (2)
18
return EnumDisplayMonitors(default, (
RECT
*)null, &EnumDisplayMonitorsNativeCallback, (LPARAM)(nint)gcHandle);
27
private static BOOL EnumDisplayMonitorsNativeCallback(HMONITOR monitor, HDC hdc,
RECT
* lprcMonitor, LPARAM lParam)
Windows\Win32\PInvokeCore.GetClientRect.cs (2)
8
/// <inheritdoc cref="GetClientRect(HWND, out
RECT
)"/>
9
public static BOOL GetClientRect<T>(T hWnd, out
RECT
lpRect)
Windows\Win32\PInvokeCore.GetWindowRect.cs (2)
8
/// <inheritdoc cref="GetWindowRect(HWND, out
RECT
)"/>
9
public static BOOL GetWindowRect<T>(T hWnd, out
RECT
lpRect) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.MapWindowPoints.cs (1)
11
public static unsafe int MapWindowPoints<TFrom, TTo>(TFrom hWndFrom, TTo hWndTo, ref
RECT
lpRect)
System.Windows.Forms (174)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (4)
286
RECT
clientRectangle = _owningChildEditAccessibilityObject.BoundingRectangle;
307
RECT
r = rect;
351
private
RECT
GetFormattingRectangle()
354
RECT
rectangle = default;
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (6)
621
HRESULT IOleInPlaceFrame.Interface.GetBorder(
RECT
* lprectBorder) => HRESULT.E_NOTIMPL;
623
HRESULT IOleInPlaceFrame.Interface.RequestBorderSpace(
RECT
* pborderwidths) => HRESULT.E_NOTIMPL;
625
HRESULT IOleInPlaceFrame.Interface.SetBorderSpace(
RECT
* pborderwidths) => HRESULT.E_NOTIMPL;
720
HRESULT IOleInPlaceUIWindow.Interface.GetBorder(
RECT
* lprectBorder)
723
HRESULT IOleInPlaceUIWindow.Interface.RequestBorderSpace(
RECT
* pborderwidths)
726
HRESULT IOleInPlaceUIWindow.Interface.SetBorderSpace(
RECT
* pborderwidths)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1164
RECT
posRect = bounds;
1165
RECT
clipRect = WebBrowserHelper.GetClipRect();
2150
RECT
posRect = Bounds;
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (4)
371
RECT
* lprcPosRect,
372
RECT
* lprcClipRect,
442
HRESULT IOleInPlaceSite.Interface.OnPosRectChange(
RECT
* lprcPosRect)
460
RECT
clipRect = WebBrowserHelper.GetClipRect();
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (15)
137
private
RECT
* _adjustRect; // temporary rect used during OnPosRectChange && SetObjectRects
331
/// <inheritdoc cref="IOleObject.DoVerb(int, MSG*, IOleClientSite*, int, HWND,
RECT
*)"/>
338
RECT
* lprcPosRect)
414
RECT
* prcBounds,
415
RECT
* lprcWBounds,
454
RECT
rc = *prcBounds;
831
RECT
posRect = default;
832
RECT
clipRect = default;
1708
RECT
posRect = bounds;
1751
/// <inheritdoc cref="IOleInPlaceObject.SetObjectRects(
RECT
*,
RECT
*)"/>
1752
internal unsafe HRESULT SetObjectRects(
RECT
* lprcPosRect,
RECT
* lprcClipRect)
1809
RECT
rcIntersect = intersect;
1995
RECT
rect = default;
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (10)
109
/// <inheritdoc cref="IOleInPlaceActiveObject.ResizeBorder(
RECT
*, IOleInPlaceUIWindow*, BOOL)"/>
110
HRESULT IOleInPlaceActiveObject.Interface.ResizeBorder(
RECT
* prcBorder, IOleInPlaceUIWindow* pUIWindow, BOOL fFrameWindow) =>
136
/// <inheritdoc cref="IOleInPlaceObject.SetObjectRects(
RECT
*,
RECT
*)"/>
137
HRESULT IOleInPlaceObject.Interface.SetObjectRects(
RECT
* lprcPosRect,
RECT
* lprcClipRect) =>
205
/// <inheritdoc cref="IOleObject.DoVerb(int, MSG*, IOleClientSite*, int, HWND,
RECT
*)"/>
212
RECT
* lprcPosRect)
533
(
RECT
*)lprcBounds,
534
(
RECT
*)lprcWBounds,
System\Windows\Forms\Application.cs (1)
706
lprcUpdate: (
RECT
*)null,
System\Windows\Forms\Control.cs (18)
384
RECT
rect = default;
1568
PInvokeCore.GetWindowRect(this, out
RECT
r);
2315
PInvokeCore.GetWindowRect(this, out
var
temp);
5382
RECT
adornmentsBeforeDpiChange = default;
5383
RECT
adornmentsAfterDpiChange = default;
5981
RECT
rcArea = rc;
6443
private protected void AdjustWindowRectExForControlDpi(ref
RECT
rect, WINDOW_STYLE style, bool bMenu, WINDOW_EX_STYLE exStyle)
6448
private static void AdjustWindowRectExForDpi(ref
RECT
rect, WINDOW_STYLE style, bool bMenu, WINDOW_EX_STYLE exStyle, int dpi)
7973
PInvokeCore.GetClientRect(new HandleRef<HWND>(_window, InternalHandle), out
RECT
rect);
8814
bool success = PInvokeCore.GetWindowRect(this, out
var
windowRect);
9376
RECT
rect = r;
9386
RECT
rect = r;
9785
RECT
adornments = default;
10229
RECT
rect = new(size);
10841
RECT
rect = default;
10873
RECT
rect = default;
11270
PInvokeCore.GetClientRect(this, out
RECT
rc);
12879
PInvokeCore.GetWindowRect(this, out
var
rect);
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
26
private
RECT
_destRect;
86
private unsafe bool DICopy(HDC hdcDest, HDC hdcSrc,
RECT
rect, bool bStretch)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
113
RECT
rect = bounds;
307
RECT
rcCheck = new Rectangle(0, 0, fullSize.Width, fullSize.Height);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
36
PInvokeCore.GetWindowRect(_owningComboBox.GetListNativeWindow(), out
var
rect);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (2)
39
RECT
itemRect = default;
53
RECT
translated = itemRect;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (3)
359
RECT
clientRectangle = _owningComboBox.ChildEditAccessibleObject.BoundingRectangle;
426
private
RECT
GetFormattingRectangle()
429
RECT
rectangle = default;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (7)
1374
PInvokeCore.GetWindowRect(this, out
var
comboRectMid);
1377
PInvokeCore.GetWindowRect(_childEdit, out
var
editRectMid);
1652
PInvokeCore.GetWindowRect(this, out
var
rect);
1800
PInvokeCore.GetWindowRect(this, out
var
rect);
3453
PInvokeCore.GetClientRect(this, out
RECT
rect);
3699
PInvokeCore.GetWindowRect(this, out
var
rect);
3743
RECT
updateRegionBoundingRect = default;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
360
private
RECT
[]? _cachedScrollableRegion;
2768
RECT
[]? rects = CreateScrollableRegion(rectTmp);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
5425
private
RECT
[]? CreateScrollableRegion(Rectangle scroll)
26240
private unsafe void ScrollRectangles(
RECT
[]? rects, int change)
26249
RECT
scroll;
26367
RECT
scrollArea = rowsRect;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1358
RECT
rcCheck = new Rectangle(0, 0, fullSize.Width, fullSize.Height);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1446
PInvoke.InvalidateRect(c.hwndFound, lpRect: (
RECT
*)null, bErase: true);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
663
PInvokeCore.GetClientRect(this, out
RECT
rect);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
301
PInvokeCore.GetWindowRect(this, out
var
r);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
391
RECT
rect = default;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
1445
RECT
rect = default;
1514
PInvokeCore.GetClientRect(this, out
RECT
r);
System\Windows\Forms\Controls\ListView\ListView.cs (4)
3597
RECT
itemrect = new()
3626
RECT
itemrect = new()
3673
RECT
itemrect = new()
4951
PInvokeCore.GetClientRect(this, out
RECT
clientRect);
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
28
PInvokeCore.GetWindowRect(owningListView, out
var
rect);
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
54
RECT
groupRect = default;
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (1)
56
RECT
bounds = default;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
62
RECT
rectangle = Bounds;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
803
RECT
rect = default;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
257
internal unsafe
RECT
GetCalendarPartRectangle(MCGRIDINFO_PART dwPart, int calendarIndex = 0, int rowIndex = 0, int columnIndex = 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3796
RECT
rect = itemRect;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
369
RECT
rect = Bounds;
1118
RECT
rect = default;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (3)
124
RECT
clientRectangle = Owner.ClientRectangle;
430
private
RECT
GetFormattingRectangle()
440
RECT
rectangle = default;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
580
PInvokeCore.GetClientRect(rootHwnd, out
RECT
rootHwndClientArea);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (4)
26
private
RECT
AbsoluteClientRECT
30
RECT
rect = default;
40
PInvokeCore.GetClientRect(this, out
var
clientRect);
114
var
absoluteClientRectangle = AbsoluteClientRECT;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
237
RECT
rc = default;
260
RECT
rc = default;
624
RECT
rc = default;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2544
RECT
rc = default;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (1)
127
unsafe HRESULT IDocHostUIHandler.ResizeBorder(
RECT
* rect, IOleInPlaceUIWindow.Interface doc, BOOL fFrameWindow)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (3)
201
RECT
posRect = new Rectangle(0, 0, width, height);
202
RECT
clipRect = WebBrowserHelper.GetClipRect();
671
RECT
posRect = Bounds;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (6)
82
HRESULT IOleInPlaceFrame.Interface.GetBorder(
RECT
* lprectBorder) => HRESULT.E_NOTIMPL;
84
HRESULT IOleInPlaceFrame.Interface.RequestBorderSpace(
RECT
* pborderwidths) => HRESULT.E_NOTIMPL;
86
HRESULT IOleInPlaceFrame.Interface.SetBorderSpace(
RECT
* pborderwidths) => HRESULT.E_NOTIMPL;
423
HRESULT IOleInPlaceUIWindow.Interface.GetBorder(
RECT
* lprectBorder)
426
HRESULT IOleInPlaceUIWindow.Interface.RequestBorderSpace(
RECT
* pborderwidths)
429
HRESULT IOleInPlaceUIWindow.Interface.SetBorderSpace(
RECT
* pborderwidths)
System\Windows\Forms\Controls\WebBrowser\WebBrowserHelper.cs (1)
109
internal static
RECT
GetClipRect() => new Rectangle(0, 0, 32000, 32000);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (8)
195
RECT
posRect = Host.Bounds;
232
RECT
posRect = Host.Bounds;
247
RECT
* lprcPosRect,
248
RECT
* lprcClipRect,
306
HRESULT IOleInPlaceSite.Interface.OnPosRectChange(
RECT
* lprcPosRect) => OnActiveXRectChange(lprcPosRect);
407
private unsafe HRESULT OnActiveXRectChange(
RECT
* lprcPosRect)
414
RECT
posRect = new(0, 0, lprcPosRect->right - lprcPosRect->left, lprcPosRect->bottom - lprcPosRect->top);
415
RECT
clipRect = WebBrowserHelper.GetClipRect();
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (4)
90
RECT
rcIn,
96
RECT
rc2 = default;
97
RECT
rc = rcIn;
260
private void FillRectDither(HDC dc,
RECT
rc)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
97
PInvokeCore.GetWindowRect(hwnd, out
var
r);
System\Windows\Forms\Form.cs (3)
3121
PInvokeCore.GetClientRect(this, out
RECT
currentClient);
3292
RECT
result = new(clientSize);
3933
PInvokeCore.GetWindowRect(ownerHandle, out
var
ownerRect);
System\Windows\Forms\Input\Cursor.cs (3)
122
PInvoke.GetClipCursor(out
RECT
rect);
129
PInvoke.ClipCursor((
RECT
*)null);
133
RECT
rect = value;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
688
PInvokeCore.GetClientRect(this, out
RECT
clientRectangle);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
452
PInvokeCore.GetWindowRect(this, out
var
r);
System\Windows\Forms\MDI\MDIClient.cs (1)
282
RECT
rect = default;
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1027
RECT
rc = new Rectangle(x, y, width, height);
1366
RECT
rcCheck = new(rectangle.Size);
1436
RECT
rcFrame = new(0, 0, width, height);
System\Windows\Forms\Rendering\DCMapping.cs (1)
69
RECT
originalClipRect = default;
System\Windows\Forms\Rendering\DpiChangedEventArgs.cs (1)
22
SuggestedRectangle = *(
RECT
*)(nint)m.LParamInternal;
System\Windows\Forms\Rendering\TextExtensions.cs (3)
96
RECT
rect = bounds;
167
RECT
rect = bounds;
244
RECT
rect = new(proposedSize);
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
789
RECT
rcClip = ClientRectangle;
790
RECT
rcUpdate = ClientRectangle;
System\Windows\Forms\SystemInformation.cs (1)
185
RECT
workingArea = default;
System\Windows\Forms\ToolTip\ToolTip.cs (9)
1311
PInvokeCore.GetWindowRect(associatedControl, out
var
rect);
1325
RECT
visibleRect = new RECT
1409
PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out
var
r);
1429
PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out
var
r);
1447
PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out
var
r);
1465
PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out
var
r);
1989
PInvokeCore.GetWindowRect(this, out
var
rectangle);
2007
PInvokeCore.GetWindowRect(Control.GetSafeHandle(window), out
var
r);
2041
PInvokeCore.GetWindowRect(this, out
var
rect);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (5)
281
RECT
contentRect;
420
_lastHResult = PInvoke.GetThemeBackgroundContentRect(HTHEME, dc, Part, State, bounds, out
RECT
rect);
437
_lastHResult = PInvoke.GetThemeBackgroundExtent(HTHEME, hdc, Part, State, contentBounds, out
RECT
extents);
673
out
RECT
rect);
696
out
RECT
rect);
System.Windows.Forms.Design (3)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
184
RECT
rect = default;
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
299
RECT
clip = default;
System\Windows\Forms\Design\ControlDesigner.cs (1)
2065
RECT
clip = default;
System.Windows.Forms.Primitives (27)
Interop\Mshtml\Interop.IDocHostUIHandler.cs (1)
58
RECT
* rect,
Interop\Richedit\Interop.REQRESIZE.cs (1)
14
public
RECT
rc;
System\Windows\Forms\DeviceContextExtensions.cs (2)
46
RECT
rect = rectangle;
155
RECT
rect = rectangle;
Windows\Win32\PInvoke.DrawTextEx.cs (2)
8
/// <inheritdoc cref="DrawTextEx(HDC, PWSTR, int,
RECT
*, DRAW_TEXT_FORMAT, DRAWTEXTPARAMS*)"/>
12
RECT
* lprc,
Windows\Win32\PInvoke.FillRect.cs (2)
8
/// <inheritdoc cref="FillRect(HDC, in
RECT
, HBRUSH)"/>
9
public static int FillRect<T>(T hDC, ref
RECT
lprc, HBRUSH hbr)
Windows\Win32\PInvoke.InvalidateRect.cs (2)
8
/// <inheritdoc cref="InvalidateRect(HWND,
RECT
*, BOOL)"/>
9
public static unsafe BOOL InvalidateRect<T>(T hWnd,
RECT
* lpRect, BOOL bErase)
Windows\Win32\PInvoke.RedrawWindow.cs (2)
8
/// <inheritdoc cref="RedrawWindow(HWND,
RECT
*, HRGN, REDRAW_WINDOW_FLAGS)"/>
9
public static unsafe BOOL RedrawWindow<T>(T hWnd,
RECT
* lprcUpdate, HRGN hrgnUpdate, REDRAW_WINDOW_FLAGS flags)
Windows\Win32\PInvoke.ScrollWindow.cs (4)
8
/// <inheritdoc cref="ScrollWindow(HWND, int, int,
RECT
*,
RECT
*)"/>
9
public static unsafe BOOL ScrollWindow<T>(T hWnd, int XAmount, int YAmount,
RECT
* lpRect,
RECT
* rectClip)
Windows\Win32\PInvoke.ScrollWindowEx.cs (6)
8
/// <inheritdoc cref="ScrollWindowEx(HWND, int, int,
RECT
*,
RECT
*, HRGN,
RECT
*, SCROLL_WINDOW_FLAGS)"/>
13
RECT
* prcScroll,
14
RECT
* prcClip,
16
RECT
* prcUpdate,
Windows\Win32\PInvoke.ValidateRect.cs (2)
8
/// <inheritdoc cref="ValidateRect(HWND,
RECT
*)"/>
9
public static unsafe BOOL ValidateRect<T>(T hWnd,
RECT
* lpRect)
Windows\Win32\UI\Controls\Dialogs\PAGESETUPDLGW.cs (2)
123
public
RECT
rtMinMargin;
141
public
RECT
rtMargin;
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
21
public ToolInfoWrapper(T handle, nint id, TOOLTIP_FLAGS flags = default, string? text = null,
RECT
rect = default)
System.Windows.Forms.Primitives.Tests (13)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (10)
33
RECT
clipRect = default;
48
RECT
clipRect = default;
63
RECT
clipRect = default;
78
RECT
clipRect = default;
94
RECT
originalClipRect = default;
116
RECT
clipRect = default;
129
RECT
currentClipRect = default;
143
RECT
clipRect = default;
166
RECT
clipRect = default;
189
RECT
clipRect = default;
System\Windows\Forms\DeviceContextScopeTests.cs (2)
30
RECT
rect2 = default;
48
RECT
rect = default;
Windows\Win32\RegionTests.cs (1)
58
RECT
rect = default;
System.Windows.Forms.Primitives.TestUtilities (31)
DeviceContextState.cs (2)
69
public
RECT
[] ClipRegion { get => _currentState.ClipRegion; set => _currentState.ClipRegion = value; }
86
public
RECT
[] ClipRegion { get; set; }
Metafiles\EmfScope.cs (2)
41
RECT
* lprc = null,
88
(
RECT
*)null);
Metafiles\RecordTypes\EMRBITBLT.cs (2)
16
public
RECT
rclBounds; // Inclusive-inclusive bounds in device units
35
RECT
dest = new Rectangle(xDest, yDest, cxDest, cyDest);
Metafiles\RecordTypes\EMREXTSELECTCLIPRGN.cs (2)
30
public
RECT
[] ClippingRectangles => RGNDATAHEADER.GetRegionRects(RegionDataHeader);
42
RECT
[] clippingRects = ClippingRectangles;
Metafiles\RecordTypes\EMREXTTEXTOUTW.cs (1)
14
public
RECT
rclBounds; // Inclusive-inclusive bounds in device units
Metafiles\RecordTypes\EMRPOLY16.cs (1)
27
public
RECT
rclBounds; // Inclusive-inclusive bounds in device units
Metafiles\RecordTypes\EMRPOLYPOLY16.cs (1)
26
public
RECT
rclBounds; // Inclusive-inclusive bounds in device units
Metafiles\RecordTypes\EMRRECTRECORD.cs (2)
11
/// Record that just has a single <see cref="
RECT
"/> value.
28
public
RECT
rect;
Metafiles\RecordTypes\EMRTEXT.cs (1)
18
public
RECT
rcl;
Metafiles\RecordTypes\ENHMETAHEADER.cs (2)
17
public
RECT
rclBounds; // Inclusive-inclusive bounds in device units
18
public
RECT
rclFrame; // Inclusive-inclusive Picture Frame of metafile in .01 mm units
Metafiles\Validators\BitBltValidator.cs (1)
17
RECT
? bounds,
Metafiles\Validators\ClippingValidator.cs (2)
10
private readonly
RECT
[] _clippingRectangles;
11
public ClippingValidator(
RECT
[] clippingRectangles) => _clippingRectangles = clippingRectangles;
Metafiles\Validators\Poly16Validator.cs (1)
19
RECT
? bounds,
Metafiles\Validators\Polygon16Validator.cs (1)
14
RECT
? bounds,
Metafiles\Validators\Polyline16Validator.cs (1)
14
RECT
? bounds,
Metafiles\Validators\PolyPoly16Validator.cs (1)
19
RECT
? bounds,
Metafiles\Validators\PolyPolygon16Validator.cs (1)
12
RECT
? bounds,
Metafiles\Validators\PolyPolyline16Validator.cs (1)
12
RECT
? bounds,
Metafiles\Validators\RectangleValidator.cs (1)
17
RECT
? bounds,
Metafiles\Validators\State.cs (1)
18
internal static IStateValidator Clipping(
RECT
[] clippingRectangles) => new ClippingValidator(clippingRectangles);
Metafiles\Validators\Validate.cs (2)
81
RECT
? bounds,
89
RECT
? bounds,
Win32\WindowClass.cs (2)
12
private static
RECT
DefaultBounds
147
RECT
bounds,
System.Windows.Forms.Tests (48)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
296
RECT
groupRect = default;
332
RECT
groupRect = default;
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
24
PInvokeCore.GetWindowRect(labelEdit, out
RECT
r);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
23
PInvokeCore.GetWindowRect(labelEdit, out
RECT
r);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (1)
202
public HRESULT Render(HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc,
RECT
* pRcWBounds) => HRESULT.S_OK;
System\Windows\Forms\ListBoxTests.cs (8)
770
RECT
rc = default;
5386
yield return new object[] { default(
RECT
), Rectangle.Empty };
5396
GetItemRectResult = (
RECT
)getItemRectResult
5406
public
RECT
GetItemRectResult { get; set; }
5412
RECT
* pRect = (
RECT
*)m.LParam;
5441
RECT
* pRect = (
RECT
*)m.LParam;
System\Windows\Forms\ListViewInsertionMarkTests.cs (7)
217
yield return new object[] { default(
RECT
), Rectangle.Empty };
227
GetInsertMarkRectResult = (
RECT
)getInsertMarkRectResult
236
public
RECT
GetInsertMarkRectResult { get; set; }
242
RECT
* pRect = (
RECT
*)m.LParam;
271
RECT
* pRect = (
RECT
*)m.LParam;
System\Windows\Forms\ListViewTests.cs (7)
4145
yield return new object[] { default(
RECT
), Rectangle.Empty };
4155
GetItemRectResult = (
RECT
)getItemRectResult
4166
public
RECT
GetItemRectResult { get; set; }
4172
RECT
* pRect = (
RECT
*)m.LParam;
4202
RECT
* pRect = (
RECT
*)m.LParam;
System\Windows\Forms\MonthCalendarTests.cs (4)
2460
GetMinReqRectResult = (
RECT
)getMinReqRectResult
2469
public
RECT
GetMinReqRectResult { get; set; }
2475
RECT
* pRect = (
RECT
*)m.LParam;
System\Windows\Forms\TabControlTests.cs (7)
3714
yield return new object[] { default(
RECT
), Rectangle.Empty };
3724
GetItemRectResult = (
RECT
)getItemRectResult
3735
public
RECT
GetItemRectResult { get; set; }
3741
RECT
* pRect = (
RECT
*)m.LParam;
3771
RECT
* pRect = (
RECT
*)m.LParam;
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
37
RECT
[] expectedRects = [
System\Windows\Forms\TreeNodeTests.cs (9)
493
yield return new object[] { default(
RECT
), Rectangle.Empty };
520
GetItemRectResult = (
RECT
)getItemRectResult
1937
yield return new object[] { default(
RECT
), false };
1964
GetItemRectResult = (
RECT
)getItemRectResult
4915
public
RECT
GetItemRectResult { get; set; }
4921
RECT
* pRect = (
RECT
*)m.LParam;
4940
RECT
* pRect = (
RECT
*)m.LParam;
System.Windows.Forms.UI.IntegrationTests (2)
Dpi\DpiMessageHelper.cs (1)
23
RECT
suggestedRect = new(0,
DragDropTests.cs (1)
182
uiAutomationElement.Value->get_CurrentBoundingRectangle(out
RECT
rect);