72 instantiations of RECT
System.Windows.Forms (72)
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
98NativeMethods.RECT r = new NativeMethods.RECT(bounds.X, bounds.Y, bounds.Right, bounds.Bottom);
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
549NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ComboBox.cs (10)
1607NativeMethods.RECT comboRectMid = new NativeMethods.RECT(); 1612NativeMethods.RECT editRectMid = new NativeMethods.RECT(); 1837NativeMethods.RECT r = new NativeMethods.RECT(); 1982NativeMethods.RECT rect = new NativeMethods.RECT(); 3453NativeMethods.RECT rect = new NativeMethods.RECT(); 3723NativeMethods.RECT r = new NativeMethods.RECT(); 6109validRect = new NativeMethods.RECT(topOwnerDrawArea); 6114validRect = new NativeMethods.RECT(bottomOwnerDrawArea); 6119validRect = new NativeMethods.RECT(leftOwnerDrawArea); 6124validRect = new NativeMethods.RECT(rightOwnerDrawArea);
winforms\Managed\System\WinForms\CommonDialog.cs (1)
177NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ContainerControl.cs (1)
715NativeMethods.RECT clientRectangle = new NativeMethods.RECT();
winforms\Managed\System\WinForms\Control.cs (14)
541NativeMethods.RECT rect = new NativeMethods.RECT(); 2087NativeMethods.RECT r = new NativeMethods.RECT(); 2991NativeMethods.RECT temp = new NativeMethods.RECT(); 6587NativeMethods.RECT adornments = new NativeMethods.RECT(0, 0, 0, 0); 9403NativeMethods.RECT rect = new NativeMethods.RECT(); 10378NativeMethods.RECT windowRect = new NativeMethods.RECT(); 11483NativeMethods.RECT adornments = new NativeMethods.RECT(0, 0, 0, 0); 11953NativeMethods.RECT rect = new NativeMethods.RECT(0, 0, width, height); 12516NativeMethods.RECT rect = new NativeMethods.RECT(); 12539NativeMethods.RECT rect = new NativeMethods.RECT(); 12964NativeMethods.RECT rc = new NativeMethods.RECT(); 16193NativeMethods.RECT rectangle = new NativeMethods.RECT(); 16685rc = new NativeMethods.RECT(prcBounds.left, prcBounds.top, prcBounds.right, prcBounds.bottom); 19247destRect = new NativeMethods.RECT(0, 0, size.Width, size.Height);
winforms\Managed\System\WinForms\Cursor.cs (1)
184NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\Form.cs (3)
3432NativeMethods.RECT rc = new NativeMethods.RECT(); 3593NativeMethods.RECT result = new NativeMethods.RECT(0, 0, clientSize.Width, clientSize.Height); 4456NativeMethods.RECT ownerRect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\GroupBox.cs (1)
770NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\LinkLabel.cs (1)
404NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ListBox.cs (2)
1505NativeMethods.RECT rect = new NativeMethods.RECT(); 1564NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ListView.cs (3)
3425NativeMethods.RECT itemrect = new NativeMethods.RECT(); 3448NativeMethods.RECT itemrect = new NativeMethods.RECT(); 3518NativeMethods.RECT itemrect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (1)
63NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\MDIClient.cs (1)
292NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
984NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\NativeMethods.cs (5)
2826internal RECT rcMonitor = new RECT(); 2827internal RECT rcWork = new RECT(); 2836internal RECT rcMonitor = new RECT(); 2837internal RECT rcWork = new RECT(); 3098return new RECT(x, y, x + width, y + height);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
587NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
656NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\StatusStrip.cs (1)
570NativeMethods.RECT rootHwndClientArea = new NativeMethods.RECT();
winforms\Managed\System\WinForms\SystemInformation.cs (1)
448NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\TabControl.cs (1)
1244NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ToolBar.cs (3)
707NativeMethods.RECT rect = new NativeMethods.RECT(); 775NativeMethods.RECT rect = new NativeMethods.RECT(); 1542NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
334NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
638NativeMethods.RECT rect = new NativeMethods.RECT(); 734NativeMethods.RECT ignored = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ToolTip.cs (9)
1556NativeMethods.RECT r = new NativeMethods.RECT(); 1571NativeMethods.RECT visibleRect = new NativeMethods.RECT(); 1659NativeMethods.RECT r = new NativeMethods.RECT(); 1686NativeMethods.RECT r = new NativeMethods.RECT(); 1711NativeMethods.RECT r = new NativeMethods.RECT(); 1736NativeMethods.RECT r = new NativeMethods.RECT(); 2185NativeMethods.RECT r = new NativeMethods.RECT(); 2246NativeMethods.RECT r = new NativeMethods.RECT(); 2284NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\TreeNode.cs (3)
281NativeMethods.RECT rc = new NativeMethods.RECT(); 301NativeMethods.RECT rc = new NativeMethods.RECT(); 634NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\TreeView.cs (1)
2577NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
651NativeMethods.RECT originalClipRect = new NativeMethods.RECT();
177 references to RECT
System.Windows.Forms (177)
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
98NativeMethods.RECT r = new NativeMethods.RECT(bounds.X, bounds.Y, bounds.Right, bounds.Bottom);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
257NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, fullSize.Width, fullSize.Height);
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
549NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ComboBox.cs (7)
1607NativeMethods.RECT comboRectMid = new NativeMethods.RECT(); 1612NativeMethods.RECT editRectMid = new NativeMethods.RECT(); 1837NativeMethods.RECT r = new NativeMethods.RECT(); 1982NativeMethods.RECT rect = new NativeMethods.RECT(); 3453NativeMethods.RECT rect = new NativeMethods.RECT(); 3723NativeMethods.RECT r = new NativeMethods.RECT(); 6101NativeMethods.RECT validRect;
winforms\Managed\System\WinForms\CommonDialog.cs (1)
177NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ContainerControl.cs (1)
715NativeMethods.RECT clientRectangle = new NativeMethods.RECT();
winforms\Managed\System\WinForms\Control.cs (27)
541NativeMethods.RECT rect = new NativeMethods.RECT(); 2087NativeMethods.RECT r = new NativeMethods.RECT(); 2991NativeMethods.RECT temp = new NativeMethods.RECT(); 6587NativeMethods.RECT adornments = new NativeMethods.RECT(0, 0, 0, 0); 7313NativeMethods.RECT rcArea = NativeMethods.RECT.FromXYWH(rc.X, rc.Y, rc.Width, rc.Height); 7321NativeMethods.RECT rcArea = 7322NativeMethods.RECT.FromXYWH(rc.X, rc.Y, rc.Width, 7757internal void AdjustWindowRectEx(ref NativeMethods.RECT rect, int style, bool bMenu, int exStyle) { 9403NativeMethods.RECT rect = new NativeMethods.RECT(); 10378NativeMethods.RECT windowRect = new NativeMethods.RECT(); 11061NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height); 11078NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height); 11483NativeMethods.RECT adornments = new NativeMethods.RECT(0, 0, 0, 0); 11762internal IntPtr SendMessage(int msg, int wparam, ref NativeMethods.RECT lparam) { 11953NativeMethods.RECT rect = new NativeMethods.RECT(0, 0, width, height); 12516NativeMethods.RECT rect = new NativeMethods.RECT(); 12539NativeMethods.RECT rect = new NativeMethods.RECT(); 12964NativeMethods.RECT rc = new NativeMethods.RECT(); 16193NativeMethods.RECT rectangle = new NativeMethods.RECT(); 16671NativeMethods.RECT rc; 18406NativeMethods.RECT rcIntersect = NativeMethods.RECT.FromXYWH(intersect.X, intersect.Y, intersect.Width, intersect.Height); 19232NativeMethods.RECT destRect; 19293private unsafe bool DICopy(HandleRef hdcDest, HandleRef hdcSrc, NativeMethods.RECT rect, bool bStretch) {
winforms\Managed\System\WinForms\ControlPaint.cs (6)
954NativeMethods.RECT rc = NativeMethods.RECT.FromXYWH(x, y, width, height); 1278NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, rectangle.Width, rectangle.Height); 1361NativeMethods.RECT rcFrame = NativeMethods.RECT.FromXYWH(0, 0, width, height);
winforms\Managed\System\WinForms\Cursor.cs (3)
184NativeMethods.RECT r = new NativeMethods.RECT(); 193NativeMethods.RECT rcClip = NativeMethods.RECT.FromXYWH(value.X, value.Y, value.Width, value.Height);
winforms\Managed\System\WinForms\DataGrid.cs (9)
148private NativeMethods.RECT[] cachedScrollableRegion = null; 2287NativeMethods.RECT[] rects = CreateScrollableRegion(scroll); 2293private void ScrollRectangles(NativeMethods.RECT[] rects, int change) { 2295NativeMethods.RECT scroll; 5755private NativeMethods.RECT[] CreateScrollableRegion(Rectangle scroll) { 8628NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.Width, rowsRect.Height); 8881NativeMethods.RECT scrollRECT = NativeMethods.RECT.FromXYWH(underParentRows.X, underParentRows.Y - layout.ParentRows.Height, underParentRows.Width, underParentRows.Height + layout.ParentRows.Height);
winforms\Managed\System\WinForms\DataGridToolTip.cs (1)
71toolInfo.rect = NativeMethods.RECT.FromXYWH(iconBounds.X, iconBounds.Y, iconBounds.Width, iconBounds.Height);
winforms\Managed\System\WinForms\DataGridView.cs (2)
398private NativeMethods.RECT[] cachedScrollableRegion; 3468NativeMethods.RECT[] rects = CreateScrollableRegion(rectTmp);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
1433NativeMethods.RECT rcCheck = NativeMethods.RECT.FromXYWH(0, 0, fullSize.Width, fullSize.Height);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
5428private NativeMethods.RECT[] CreateScrollableRegion(Rectangle scroll) 26347private void ScrollRectangles(NativeMethods.RECT[] rects, int change) 26356NativeMethods.RECT scroll; 26470NativeMethods.RECT scrollArea = NativeMethods.RECT.FromXYWH(rowsRect.X, rowsRect.Y, rowsRect.Width, rowsRect.Height);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (2)
701private void DrawTreeItem(string itemText, int imageIndex, IntPtr dc, NativeMethods.RECT rcIn, 833private void FillRectDither(IntPtr dc, NativeMethods.RECT rc) {
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1226toolInfo.rect = NativeMethods.RECT.FromXYWH(iconBounds.X, iconBounds.Y, iconBounds.Width, iconBounds.Height);
winforms\Managed\System\WinForms\Form.cs (4)
3432NativeMethods.RECT rc = new NativeMethods.RECT(); 3593NativeMethods.RECT result = new NativeMethods.RECT(0, 0, clientSize.Width, clientSize.Height); 4456NativeMethods.RECT ownerRect = new NativeMethods.RECT(); 7858toolInfo.rect = NativeMethods.RECT.FromXYWH(r.X, r.Y, r.Width, r.Height);
winforms\Managed\System\WinForms\GroupBox.cs (1)
770NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\LinkLabel.cs (1)
404NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ListBox.cs (2)
1505NativeMethods.RECT rect = new NativeMethods.RECT(); 1564NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ListView.cs (4)
3425NativeMethods.RECT itemrect = new NativeMethods.RECT(); 3448NativeMethods.RECT itemrect = new NativeMethods.RECT(); 3518NativeMethods.RECT itemrect = new NativeMethods.RECT(); 4573prc = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.RECT)));
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (1)
63NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\MDIClient.cs (1)
292NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
984NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\NativeMethods.cs (14)
2802internal RECT rcMargins = RECT.FromXYWH(-1, -1, -1, -1); // amount of space between edges of window and text, -1 for each member to ignore 2826internal RECT rcMonitor = new RECT(); 2827internal RECT rcWork = new RECT(); 2836internal RECT rcMonitor = new RECT(); 2837internal RECT rcWork = new RECT(); 3097public static RECT FromXYWH(int x, int y, int width, int height) { 4765public RECT rect; 4779public RECT rect; 5032public RECT rcItem; 5234public RECT rc; 5298public RECT rcText; 5466public RECT rcLabelMargin; 5836public RECT rc;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
749NativeMethods.RECT scroll = NativeMethods.RECT.FromXYWH(rect.X, rect.Y, rect.Width, rect.Height);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (2)
180NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(itemRect.X, itemRect.Y, itemRect.Width, itemRect.Height);
winforms\Managed\System\WinForms\SafeNativeMethods.cs (17)
339public static extern IntPtr MonitorFromRect(ref NativeMethods.RECT rect, int flags); 469public extern static bool GetClipCursor([In, Out] ref NativeMethods.RECT lpRect); 493public static extern bool AdjustWindowRectEx(ref NativeMethods.RECT lpRect, int dwStyle, bool bMenu, int dwExStyle); 498public static extern bool AdjustWindowRectExForDpi(ref NativeMethods.RECT lpRect, int dwStyle, bool bMenu, int dwExStyle, uint dpi); 511public static extern bool GetClientRect(HandleRef hWnd, [In, Out] ref NativeMethods.RECT rect); 520public static extern bool ValidateRect(HandleRef hWnd, [In, Out] ref NativeMethods.RECT rect); 537public static extern int FillRect(HandleRef hdc, [In] ref NativeMethods.RECT rect, HandleRef hbrush); 578public static extern bool LPtoDP(HandleRef hDC, [In, Out] ref NativeMethods.RECT lpRect, int nCount); 635public static extern bool RedrawWindow(HandleRef hwnd, ref NativeMethods.RECT rcUpdate, HandleRef hrgnUpdate, int flags); 641public static extern bool InvalidateRect(HandleRef hWnd, ref NativeMethods.RECT rect, bool erase); 656public static extern int ScrollWindowEx(HandleRef hWnd, int nXAmount, int nYAmount, NativeMethods.COMRECT rectScrollRegion, ref NativeMethods.RECT rectClip, HandleRef hrgnUpdate, ref NativeMethods.RECT prcUpdate, int flags); 687public static extern bool ScrollWindow(HandleRef hWnd, int nXAmount, int nYAmount, ref NativeMethods.RECT rectScrollRegion, ref NativeMethods.RECT rectClip); 705public static extern bool DrawEdge(HandleRef hDC, ref NativeMethods.RECT rect, int edge, int flags); 708public static extern bool DrawFrameControl(HandleRef hDC, ref NativeMethods.RECT rect, int type, int state); 714public static extern int GetRgnBox(HandleRef hRegion, ref NativeMethods.RECT clipRect);
winforms\Managed\System\WinForms\Screen.cs (2)
328NativeMethods.RECT rc = NativeMethods.RECT.FromXYWH(rect.X, rect.Y, rect.Width, rect.Height);
winforms\Managed\System\WinForms\ScrollableControl.cs (4)
876NativeMethods.RECT rcClip = NativeMethods.RECT.FromXYWH(cr.X, cr.Y, cr.Width, cr.Height); 877NativeMethods.RECT rcUpdate = NativeMethods.RECT.FromXYWH(cr.X, cr.Y, cr.Width, cr.Height);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
587NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\StatusBar.cs (1)
1888ti.rect = NativeMethods.RECT.FromXYWH(tool.rect.X, tool.rect.Y, tool.rect.Width, tool.rect.Height);
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
656NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\StatusStrip.cs (1)
570NativeMethods.RECT rootHwndClientArea = new NativeMethods.RECT();
winforms\Managed\System\WinForms\SystemInformation.cs (1)
448NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\TabControl.cs (3)
414NativeMethods.RECT rect = NativeMethods.RECT.FromXYWH(bounds.X, bounds.Y, bounds.Width, bounds.Height); 1244NativeMethods.RECT rect = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ToolBar.cs (3)
707NativeMethods.RECT rect = new NativeMethods.RECT(); 775NativeMethods.RECT rect = new NativeMethods.RECT(); 1542NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
334NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ToolStripTextBox.cs (5)
636private NativeMethods.RECT AbsoluteClientRECT { 638NativeMethods.RECT rect = new NativeMethods.RECT(); 660NativeMethods.RECT rect = AbsoluteClientRECT; 720NativeMethods.RECT absoluteClientRectangle = AbsoluteClientRECT; 734NativeMethods.RECT ignored = new NativeMethods.RECT();
winforms\Managed\System\WinForms\ToolTip.cs (9)
1556NativeMethods.RECT r = new NativeMethods.RECT(); 1571NativeMethods.RECT visibleRect = new NativeMethods.RECT(); 1659NativeMethods.RECT r = new NativeMethods.RECT(); 1686NativeMethods.RECT r = new NativeMethods.RECT(); 1711NativeMethods.RECT r = new NativeMethods.RECT(); 1736NativeMethods.RECT r = new NativeMethods.RECT(); 2185NativeMethods.RECT r = new NativeMethods.RECT(); 2246NativeMethods.RECT r = new NativeMethods.RECT(); 2284NativeMethods.RECT r = new NativeMethods.RECT();
winforms\Managed\System\WinForms\TreeNode.cs (3)
281NativeMethods.RECT rc = new NativeMethods.RECT(); 301NativeMethods.RECT rc = new NativeMethods.RECT(); 634NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\TreeView.cs (1)
2577NativeMethods.RECT rc = new NativeMethods.RECT();
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (19)
856public static extern int MapWindowPoints(HandleRef hWndFrom, HandleRef hWndTo, [In, Out] ref NativeMethods.RECT rect, int cPoints); 1050public extern static IntPtr SendMessage(HandleRef hWnd, int Msg, IntPtr wParam, [In, Out] ref NativeMethods.RECT lParam); 1062public extern static IntPtr SendMessage(HandleRef hWnd, int Msg, int wParam, [In, Out] ref NativeMethods.RECT lParam); 1081public static extern bool GetWindowRect(HandleRef hWnd, [In, Out] ref NativeMethods.RECT rect); 1157public static extern bool SystemParametersInfo(int nAction, int nParam, ref NativeMethods.RECT rc, int nUpdate); 1513public static extern bool ClipCursor(ref NativeMethods.RECT rcClip); 1578public static extern bool GetClientRect(HandleRef hWnd, [In, Out] ref NativeMethods.RECT rect); 1663public unsafe static NativeMethods.RECT[] GetRectsFromRegion(IntPtr hRgn) { 1664NativeMethods.RECT[] regionRects = null; 1677regionRects = new NativeMethods.RECT[pRgnDataHeader->nCount]; 1680Debug.Assert(Marshal.SizeOf(typeof(NativeMethods.RECT)) == pRgnDataHeader->nRgnSize || pRgnDataHeader->nRgnSize == 0); 1686regionRects[i] = *((NativeMethods.RECT*)((byte*)pBytes + rectStart + (Marshal.SizeOf(typeof(NativeMethods.RECT)) * i))); 7732ref NativeMethods.RECT prcView); 7737ref NativeMethods.RECT prcView); 7742NativeMethods.RECT prcView, 7744NativeMethods.RECT prcHScroll, 7746NativeMethods.RECT prcVScroll, 7748NativeMethods.RECT prcSizeBox);
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
651NativeMethods.RECT originalClipRect = new NativeMethods.RECT();