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