8 writes to top
System.Windows.Forms (8)
winforms\Managed\System\WinForms\Control.cs (2)
542rect.left = rect.right = rect.top = rect.bottom = 0; 12540rect.left = rect.right = rect.top = rect.bottom = 0;
winforms\Managed\System\WinForms\ControlPaint.cs (1)
967rc.top -= sz.Height;
winforms\Managed\System\WinForms\ListView.cs (1)
3520itemrect.top = subItemIndex;
winforms\Managed\System\WinForms\NativeMethods.cs (2)
3085this.top = top; 3092this.top = r.Top;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
652rect.top += offsetY;
winforms\Managed\System\WinForms\ToolTip.cs (1)
1573visibleRect.top = (r.top < screen.WorkingArea.Top) ? screen.WorkingArea.Top:r.top;
92 references to top
System.Windows.Forms (92)
winforms\Managed\System\WinForms\ComboBox.cs (13)
1617int comboYMid = NativeMethods.Util.SignedHIWORD(m.LParam) + (editRectMid.top - comboRectMid.top); 1839Rectangle ClientRect = new Rectangle(r.left, r.top, r.right - r.left, r.bottom - r.top); 1984Rectangle Rect = new Rectangle(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top); 3459graphics.FillRectangle(brush, rect.left, rect.top, 3460rect.right - rect.left, rect.bottom - rect.top); 3464graphics.FillRectangle(SystemBrushes.Control, rect.left, rect.top, 3465rect.right - rect.left, rect.bottom - rect.top); 3612OnDrawItem(new DrawItemEventArgs(g, Font, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), 3725Rectangle ClientRect = new Rectangle(r.left, r.top, r.right - r.left, r.bottom - r.top);
winforms\Managed\System\WinForms\CommonDialog.cs (1)
181int y = screen.Y + (screen.Height - r.bottom + r.top) / 3;
winforms\Managed\System\WinForms\Control.cs (24)
548clientHeight = height - (rect.bottom - rect.top); 2091if ((r.left <= p.x && p.x < r.right && r.top <= p.y && p.y < r.bottom) || UnsafeNativeMethods.GetCapture() == Handle) 3001working = new Region(Rectangle.FromLTRB(temp.left, temp.top, temp.right, temp.bottom)); 3019Rectangle current = Rectangle.FromLTRB(temp.left, temp.top, temp.right, temp.bottom); 6631int adornmentHeight = (adornments.bottom - adornments.top); 9406PaintBackground(pevent, new Rectangle(rect.left, rect.top, rect.right, rect.bottom)); 10382clientOffset = new Point(clientOffset.X - windowRect.left, clientOffset.Y - windowRect.top); 11063return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 11080return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 12525UpdateBounds(rect.left, rect.top, rect.right - rect.left, 12526rect.bottom - rect.top, clientWidth, clientHeight); 12546int clientHeight = height - (rect.bottom - rect.top); 12966using (PaintEventArgs pevent = new PaintEventArgs(dc, Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom))) { 16195return Rectangle.FromLTRB(rectangle.left, rectangle.top, rectangle.right, rectangle.bottom); 16698SafeNativeMethods.SetViewportOrgEx(new HandleRef(null, hdcDraw), rc.left, rc.top, pVp); 16699SafeNativeMethods.SetViewportExtEx(new HandleRef(null, hdcDraw), rc.right - rc.left, rc.bottom - rc.top, sViewportExt); 18409Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "Old Intersect: " + new Rectangle(rcIntersect.left, rcIntersect.top, rcIntersect.right-rcIntersect.left, rcIntersect.bottom-rcIntersect.top)); 18414Debug.WriteLineIf(CompModSwitches.ActiveX.TraceInfo, "New Intersect: " + new Rectangle(rcIntersect.left, rcIntersect.top, rcIntersect.right-rcIntersect.left, rcIntersect.bottom-rcIntersect.top)); 18418clipRegion = SafeNativeMethods.CreateRectRgn(rcIntersect.left, rcIntersect.top, 19372yDest = rect.top; 19374cyDest = rect.bottom - rect.top; 19379yDest = rect.top;
winforms\Managed\System\WinForms\Cursor.cs (1)
186return Rectangle.FromLTRB(r.left, r.top, r.right, r.bottom);
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (3)
705IntNativeMethods.RECT rc = new IntNativeMethods.RECT(rcIn.left, rcIn.top, rcIn.right, rcIn.bottom); 842SafeNativeMethods.PatBlt(new HandleRef(null, dc), rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top, NativeMethods.PATCOPY);
winforms\Managed\System\WinForms\Form.cs (4)
3434Rectangle currentClient = Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 3458currentClient = Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 3595return new Size(result.right - result.left, result.bottom - result.top); 4466p.Y = (ownerRect.top + ownerRect.bottom - s.Height) / 2;
winforms\Managed\System\WinForms\GroupBox.cs (2)
774graphics.FillRectangle(b, rect.left, rect.top, 775rect.right - rect.left, rect.bottom - rect.top);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
409if ((r.left <= p.x && p.x < r.right && r.top <= p.y && p.y < r.bottom) || UnsafeNativeMethods.GetCapture() == Handle)
winforms\Managed\System\WinForms\ListBox.cs (3)
1507return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 1566if (r.left <= x && x < r.right && r.top <= y && y < r.bottom) { 2329Rectangle bounds = Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom);
winforms\Managed\System\WinForms\ListView.cs (4)
3432return Rectangle.FromLTRB(itemrect.left, itemrect.top, itemrect.right, itemrect.bottom); 3453return Rectangle.FromLTRB(itemrect.left, itemrect.top, itemrect.right, itemrect.bottom); 3526Rectangle result = Rectangle.FromLTRB(itemrect.left, itemrect.top, itemrect.right, itemrect.bottom); 5473Rectangle r = Rectangle.FromLTRB(nmcd->rc.left, nmcd->rc.top, nmcd->rc.right, nmcd->rc.bottom);
winforms\Managed\System\WinForms\ListViewInsertionMark.cs (1)
65return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom);
winforms\Managed\System\WinForms\MDIClient.cs (1)
300rgn2 = SafeNativeMethods.CreateRectRgn(-rect.left, -rect.top,
winforms\Managed\System\WinForms\MenuItem.cs (1)
1498OnDrawItem(new DrawItemEventArgs(g, SystemInformation.MenuFont, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), Index, (DrawItemState)dis.itemState));
winforms\Managed\System\WinForms\NativeMethods.cs (1)
3103return new System.Drawing.Size(this.right - this.left, this.bottom - this.top);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
185Point locPoint = parent.PointToScreen(new Point(rect.left, rect.top));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3475OnContentsResized(new ContentsResizedEventArgs(Rectangle.FromLTRB(reqResize.rc.left, reqResize.rc.top, reqResize.rc.right, reqResize.rc.bottom)));
winforms\Managed\System\WinForms\Screen.cs (2)
92bounds = Rectangle.FromLTRB(info.rcMonitor.left, info.rcMonitor.top, info.rcMonitor.right, info.rcMonitor.bottom); 249workingArea = Rectangle.FromLTRB(info.rcWork.left, info.rcWork.top, info.rcWork.right, info.rcWork.bottom);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
590if ((r.left <= p.x && p.x < r.right && r.top <= p.y && p.y < r.bottom) || UnsafeNativeMethods.GetCapture() == Handle)
winforms\Managed\System\WinForms\StatusBar.cs (1)
1039Rectangle r = Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom);
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
660this.parent.Invalidate(Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom));
winforms\Managed\System\WinForms\SystemInformation.cs (1)
450return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom);
winforms\Managed\System\WinForms\TabControl.cs (3)
437Rectangle r = Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 1252return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom); 2058OnDrawItem(new DrawItemEventArgs(g, Font, Rectangle.FromLTRB(dis.rcItem.left, dis.rcItem.top, dis.rcItem.right, dis.rcItem.bottom), dis.itemID, (DrawItemState)dis.itemState));
winforms\Managed\System\WinForms\ToolBar.cs (2)
723height = rect.bottom - rect.top; 1559tpm.rcExclude_top = rc.top;
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
336return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (4)
645int offsetY = -rect.top; 661return Rectangle.FromLTRB(rect.top, rect.top, rect.right, rect.bottom); 728hClientRegion = new HandleRef(this, SafeNativeMethods.CreateRectRgn(absoluteClientRectangle.left, absoluteClientRectangle.top, absoluteClientRectangle.right, absoluteClientRectangle.bottom));
winforms\Managed\System\WinForms\ToolTip.cs (11)
1567cursorLocation.Y < r.top || cursorLocation.Y > r.bottom ) { 1573visibleRect.top = (r.top < screen.WorkingArea.Top) ? screen.WorkingArea.Top:r.top; 1578p.Y = visibleRect.top + (visibleRect.bottom - visibleRect.top)/2; 1662int pointY = r.top + point.Y; 1689int pointY = r.top + point.Y; 1714int pointY = r.top + y; 1739int pointY = r.top + y; 2253cursorLocation.Y >= r.top && cursorLocation.Y <= r.bottom) { 2355r.left, r.top, currentTooltipSize.Width, currentTooltipSize.Height,
winforms\Managed\System\WinForms\TreeNode.cs (3)
289return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 312return Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom); 640visible = (rc.bottom > 0 && rc.right > 0 && rc.top < size.Height && rc.left < size.Width);