16 writes to top
System.Private.Windows.Core (1)
Windows.Win32.RECT.g.cs (1)
53 this.top = top;
System.Windows.Forms (15)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1999rect.top = _control.Top; 2004rect.top = y;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
3671top = subItemIndex
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (2)
58groupRect.top = (int)rectType; 65groupRect.top = Math.Max(listViewBounds.Top, groupRect.top);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
44clientRect.top += offsetY;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (4)
128rc2.top = rc.top + (((rc.bottom - rc.top) - size.Height) >> 1); 162rc2.top = rc.top; 174rc2.top = rc.bottom - 1; 178rc2.top = rc.top;
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
306dialogSettings.rtMinMargin.top = margins.Top; 315dialogSettings.rtMargin.top = margins.Top; 323dialogSettings.rtMargin.top = Math.Max(dialogSettings.rtMargin.top, dialogSettings.rtMinMargin.top);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
1072rc.top -= sz.Height;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1328top = (rect.top < screen.WorkingArea.Top) ? screen.WorkingArea.Top : rect.top,
57 references to top
System.Private.Windows.Core (5)
Windows.Win32.RECT.g.cs (5)
64 internal readonly int Height => unchecked(this.bottom - this.top); 66 internal readonly bool IsEmpty => this.left == 0 && this.top == 0 && this.right == 0 && this.bottom == 0; 70 internal readonly int Y => this.top; 74 public static implicit operator global::System.Drawing.Rectangle(RECT value) => new global::System.Drawing.Rectangle(value.left, value.top, value.Width, value.Height); 76 public static implicit operator global::System.Drawing.RectangleF(RECT value) => new global::System.Drawing.RectangleF(value.left, value.top, value.Width, value.Height);
System.Windows.Forms (51)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
290clientLocation.Y = Math.Max(clientLocation.Y, clientRectangle.top);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (6)
459Point p1 = new(rc.left, rc.top); 460Point p2 = new(rc.right - rc.left, rc.bottom - rc.top); 2010rect.bottom = rect.top + _control.Height; 2015rect.bottom = rect.top + height; 2036y = rect.top; 2042height = rect.bottom - rect.top;
System\Windows\Forms\Control.cs (3)
1590if ((r.left <= p.X && p.X < r.right && r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND) 8836clientOffset = new(clientOffset.X - windowRect.left, clientOffset.Y - windowRect.top); 10875rect.top,
System\Windows\Forms\Control.MetafileDCWrapper.cs (2)
178yDest = rect.top; 185yDest = rect.top;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
363clientLocation.Y = Math.Max(clientLocation.Y, clientRectangle.top);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1395int comboYMid = PARAM.SignedHIWORD(m.LParamInternal) + (editRectMid.top - comboRectMid.top);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
302if ((r.left <= p.X && p.X < r.right && r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1513if (r.left <= x && x < r.right && r.top <= y && y < r.bottom)
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
65groupRect.top = Math.Max(listViewBounds.Top, groupRect.top);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
64int y = rectangle.top + (rectangle.Height / 2);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3824Point location = parent.PointToScreen(new(rect.left, rect.top));
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
128clientLocation.Y = Math.Max(clientLocation.Y, clientRectangle.top);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (2)
37int offsetY = -rect.top; 120absoluteClientRectangle.top,
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
632visible = (rc.bottom > 0 && rc.right > 0 && rc.top < size.Height && rc.left < size.Width);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
411RECT posRect = new(0, 0, lprcPosRect->right - lprcPosRect->left, lprcPosRect->bottom - lprcPosRect->top);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (9)
128rc2.top = rc.top + (((rc.bottom - rc.top) - size.Height) >> 1); 129rc2.bottom = rc2.top + size.Height; 150rc.top + (((rc.bottom - rc.top) - SIZE_ICON_Y) >> 1), 162rc2.top = rc.top; 163rc2.bottom = rc.top + 1; 178rc2.top = rc.top; 269PInvoke.PatBlt(dc, rc.left, rc.top, rc.Width, rc.Height, ROP_CODE.PATCOPY);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
100int y = screen.Y + (screen.Height - r.bottom + r.top) / 3;
System\Windows\Forms\Form.cs (1)
3921p.Y = (ownerRect.top + ownerRect.bottom - s.Height) / 2;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
453if ((r.left <= p.X && p.X < r.right && r.top <= p.Y && p.Y < r.bottom) || PInvoke.GetCapture() == HWND)
System\Windows\Forms\MDI\MDIClient.cs (1)
289-rect.top,
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
252Top = data.rtMargin.top, 323dialogSettings.rtMargin.top = Math.Max(dialogSettings.rtMargin.top, dialogSettings.rtMinMargin.top);
System\Windows\Forms\ToolTip\ToolTip.cs (10)
1321cursorLocation.Y < rect.top || cursorLocation.Y > rect.bottom) 1328top = (rect.top < screen.WorkingArea.Top) ? screen.WorkingArea.Top : rect.top, 1334p.Y = visibleRect.top + visibleRect.Height / 2; 1411int pointY = r.top + point.Y; 1431int pointY = r.top + point.Y; 1449int pointY = r.top + y; 1467int pointY = r.top + y; 2013cursorLocation.Y >= r.top && cursorLocation.Y <= r.bottom) 2111rect.top,
System.Windows.Forms.Interop.Tests (1)
RichTextBoxTests.cs (1)
137Assert.Equal(54425, value.rc.top);