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