27 writes to Top
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
100TextBox.Top += dialogHeightChange
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
232control.Top = Twip2Pixel(value, xDirection: false);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
462_horizScrollBar.Top = ClientRectangle.Height - _horizScrollBar.Height; 468_vertScrollBar.Top = 0;
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
84Top = _focusVOffset, 801_hScrollBar.Top = availableRect.Bottom - _hScrollBar.Height;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\FormatStringDialog.cs (2)
89_okButton.Top = _formatControl1.Bottom + 5; 90_cancelButton.Top = _formatControl1.Bottom + 5;
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
447controls[i].Top = adjustedLoc.Y;
System.Windows.Forms.Tests (15)
System\Windows\Forms\ControlTests.Properties.cs (15)
12126control.Top = value; 12147control.Top = value; 12216control.Top = value; 12238control.Top = value; 12314control.Top = value; 12338control.Top = value; 12423control.Top = value; 12452control.Top = value; 12501control.Top = 1; 12506control.Top = 1; 12511control.Top = 2; 12538control.Top = 1; 12544control.Top = 1; 12550control.Top = 2; 12558control.Top = 1;
WinFormsControlsTest (3)
RichTextBoxes.cs (3)
128Label textLabel = new() { Left = 50, Top = 20, Text = text }; 129TextBox textBox = new() { Left = 50, Top = 50, Width = 400 }; 130Button confirmation = new() { Text = "Ok", Left = 350, Width = 100, Top = 70, DialogResult = DialogResult.OK };
304 references to Top
System.Windows.Forms (28)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
227get => Pixel2Twip(GetControl()?.Top ?? 0, xDirection: false);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1999rect.top = _control.Top;
System\Windows\Forms\Control.cs (5)
8227Rectangle shift = new(-Left, -Top, parent.Width, parent.Height); 8232rectangle.Top + Top, 8239PInvokeCore.OffsetViewportOrgEx(hdc, -Left, -Top, lppt: null); 10047/// <param name="y">The new <see cref="Top" /> property value of the control.</param> 11898if ((wp->flags & SET_WINDOW_POS_FLAGS.SWP_NOMOVE) == 0 && (wp->x != Left || wp->y != Top))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
155_titleLabel.Top, 162_descriptionLabel.Top,
System\Windows\Forms\Controls\Splitter\Splitter.cs (6)
420OnSplitterMoved(new SplitterEventArgs(Left, Top, (Left + bounds.Width / 2), (Top + bounds.Height / 2))); 732if (target.Bottom == Top) 739if (target.Top == Bottom) 825int y = e.Y + Top; 958int size = GetSplitSize(splitTarget, x - Left + _anchor.X, y - Top + _anchor.Y);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
748private bool ShouldSerializeLocation() => Left != 0 || Top != 0;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
423return new Point(toolStripToDrag.Right, toolStripToDrag.Top); 529controlLocations[j] = new Point(row.Bounds.Width - control.Right, control.Top);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1941Top, 1954Top,
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (2)
229y = _control.Top; 233y = _control.Top + (_control.Height - size.Height) / 2;
System\Windows\Forms\Form.cs (3)
4212form.SetBounds(new Rectangle(Left, Top, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None); 4355Point pointToSnap = new(button.Left + button.Width / 2, button.Top + button.Height / 2); 5875return Left != 0 || Top != 0;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
768r.Y = _splitterRect.Y - Top; 991SplitterCancelEventArgs se = new(Left + SplitterRectangle.X + SplitterRectangle.Width / 2, Top + SplitterRectangle.Y + SplitterRectangle.Height / 2, xSplit, ySplit);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
464private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.Height);
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
272Point pt = new(c.Left, c.Top);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
940if (propTop is not null && _resizeComponents[i].resizeControl.Top != _resizeComponents[i].resizeBounds.Y) 942propTop.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.Top);
System\Windows\Forms\Design\FormatControl.cs (1)
322formatTypeListBox.Height = tableLayoutPanel1.Bottom - formatTypeListBox.Top;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
420if (newChild.Left == 0 && newChild.Top == 0 && newChild.Width >= Control.Width && newChild.Height >= Control.Height)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
110Point pt = new(c.Left, c.Top);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
120Assert.Equal(0, control.Top);
System.Windows.Forms.Tests (259)
System\Windows\Forms\AxHostTests.cs (2)
110Assert.Equal(0, control.Top); 204Assert.Equal(0, control.Top);
System\Windows\Forms\ButtonBaseTests.cs (1)
113Assert.Equal(0, control.Top);
System\Windows\Forms\ButtonTests.cs (1)
111Assert.Equal(0, control.Top);
System\Windows\Forms\CheckBoxTests.cs (1)
114Assert.Equal(0, control.Top);
System\Windows\Forms\ComboBoxTests.cs (1)
125Assert.Equal(0, control.Top);
System\Windows\Forms\ContainerControlTests.cs (1)
114Assert.Equal(0, control.Top);
System\Windows\Forms\ControlTests.cs (5)
92Assert.Equal(0, control.Top); 181Assert.Equal(0, control.Top); 277Assert.Equal(top, control.Top); 373Assert.Equal(0, control.Top); 469Assert.Equal(top, control.Top);
System\Windows\Forms\ControlTests.Methods.cs (74)
7431Assert.Equal(y, control.Top); 7450Assert.Equal(y, control.Top); 7542Assert.Equal(y, control.Top); 7561Assert.Equal(y, control.Top); 7640Assert.Equal(y, control.Top); 7659Assert.Equal(y, control.Top); 7758Assert.Equal(y, control.Top); 7778Assert.Equal(y, control.Top); 7881Assert.Equal(y, control.Top); 7903Assert.Equal(y, control.Top); 8029Assert.Equal(y, control.Top); 8056Assert.Equal(y, control.Top); 8218Assert.Equal(expectedY, control.Top); 8237Assert.Equal(expectedY, control.Top); 8329Assert.Equal(expectedY, control.Top); 8348Assert.Equal(expectedY, control.Top); 8427Assert.Equal(expectedY, control.Top); 8446Assert.Equal(expectedY, control.Top); 8615Assert.Equal(expectedY, control.Top); 8635Assert.Equal(expectedY, control.Top); 8738Assert.Equal(expectedY, control.Top); 8760Assert.Equal(expectedY, control.Top); 8886Assert.Equal(expectedY, control.Top); 8913Assert.Equal(expectedY, control.Top); 9032Assert.Equal(y, control.Top); 9053Assert.Equal(y, control.Top); 9174Assert.Equal(y, control.Top); 9195Assert.Equal(y, control.Top); 9303Assert.Equal(y, control.Top); 9324Assert.Equal(y, control.Top); 9440Assert.Equal(y, control.Top); 9462Assert.Equal(y, control.Top); 9595Assert.Equal(y, control.Top); 9619Assert.Equal(y, control.Top); 9753Assert.Equal(y, control.Top); 9782Assert.Equal(y, control.Top); 9864Assert.Equal(0, control.Top); 9880Assert.Equal(0, control.Top); 9912Assert.Equal(0, control.Top); 9931Assert.Equal(0, control.Top); 10387Assert.Equal(0, control.Top); 10406Assert.Equal(0, control.Top); 10454Assert.Equal(0, control.Top); 10487Assert.Equal(0, control.Top); 10561Assert.Equal(0, control.Top); 10580Assert.Equal(0, control.Top); 10653Assert.Equal(0, control.Top); 10672Assert.Equal(0, control.Top); 10744Assert.Equal(0, control.Top); 10766Assert.Equal(0, control.Top); 10811Assert.Equal(2, control.Top); 10833Assert.Equal(2, control.Top); 10889Assert.Equal(2, control.Top); 10915Assert.Equal(2, control.Top); 11001Assert.Equal(y, control.Top); 11020Assert.Equal(y, control.Top); 11112Assert.Equal(y, control.Top); 11131Assert.Equal(y, control.Top); 11210Assert.Equal(y, control.Top); 11229Assert.Equal(y, control.Top); 11319Assert.Equal(y, control.Top); 11339Assert.Equal(y, control.Top); 11442Assert.Equal(y, control.Top); 11464Assert.Equal(y, control.Top); 11571Assert.Equal(y, control.Top); 11598Assert.Equal(y, control.Top); 11696Assert.Equal(y, control.Top); 11715Assert.Equal(y, control.Top); 11805Assert.Equal(y, control.Top); 11825Assert.Equal(y, control.Top); 11940Assert.Equal(y, control.Top); 11962Assert.Equal(y, control.Top); 12069Assert.Equal(y, control.Top); 12096Assert.Equal(y, control.Top);
System\Windows\Forms\ControlTests.Properties.cs (76)
2484Assert.Equal(y, control.Top); 2503Assert.Equal(y, control.Top); 2573Assert.Equal(y, control.Top); 2592Assert.Equal(y, control.Top); 2658Assert.Equal(y, control.Top); 2677Assert.Equal(y, control.Top); 2763Assert.Equal(y, control.Top); 2783Assert.Equal(y, control.Top); 2863Assert.Equal(y, control.Top); 2885Assert.Equal(y, control.Top); 2988Assert.Equal(y, control.Top); 3015Assert.Equal(y, control.Top); 3387Assert.Equal(0, control.Top); 3403Assert.Equal(0, control.Top); 3450Assert.Equal(0, control.Top); 3469Assert.Equal(0, control.Top); 5734Assert.Equal(0, control.Top); 5753Assert.Equal(0, control.Top); 5844Assert.Equal(0, control.Top); 5863Assert.Equal(0, control.Top); 5932Assert.Equal(0, control.Top); 5951Assert.Equal(0, control.Top); 6040Assert.Equal(0, control.Top); 6060Assert.Equal(0, control.Top); 6152Assert.Equal(0, control.Top); 6174Assert.Equal(0, control.Top); 6289Assert.Equal(0, control.Top); 6316Assert.Equal(0, control.Top); 6698Assert.Equal(0, control.Top); 6720Assert.Equal(0, control.Top); 6789Assert.Equal(0, control.Top); 6811Assert.Equal(0, control.Top); 6888Assert.Equal(0, control.Top); 6913Assert.Equal(0, control.Top); 6998Assert.Equal(0, control.Top); 7027Assert.Equal(0, control.Top); 7179Assert.Equal(value.Y, control.Top); 7201Assert.Equal(value.Y, control.Top); 7269Assert.Equal(value.Y, control.Top); 7292Assert.Equal(value.Y, control.Top); 7371Assert.Equal(value.Y, control.Top); 7396Assert.Equal(value.Y, control.Top); 7482Assert.Equal(value.Y, control.Top); 7512Assert.Equal(value.Y, control.Top); 11118Assert.Equal(0, control.Top); 11137Assert.Equal(0, control.Top); 11229Assert.Equal(0, control.Top); 11248Assert.Equal(0, control.Top); 11324Assert.Equal(0, control.Top); 11343Assert.Equal(0, control.Top); 11439Assert.Equal(0, control.Top); 11459Assert.Equal(0, control.Top); 11556Assert.Equal(0, control.Top); 11578Assert.Equal(0, control.Top); 11698Assert.Equal(0, control.Top); 11725Assert.Equal(0, control.Top); 12133Assert.Equal(value, control.Top); 12154Assert.Equal(value, control.Top); 12223Assert.Equal(value, control.Top); 12245Assert.Equal(value, control.Top); 12321Assert.Equal(value, control.Top); 12345Assert.Equal(value, control.Top); 12430Assert.Equal(value, control.Top); 12459Assert.Equal(value, control.Top); 13153Assert.Equal(0, control.Top); 13172Assert.Equal(0, control.Top); 13263Assert.Equal(0, control.Top); 13282Assert.Equal(0, control.Top); 13351Assert.Equal(0, control.Top); 13370Assert.Equal(0, control.Top); 13459Assert.Equal(0, control.Top); 13479Assert.Equal(0, control.Top); 13571Assert.Equal(0, control.Top); 13593Assert.Equal(0, control.Top); 13708Assert.Equal(0, control.Top); 13735Assert.Equal(0, control.Top);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
122Assert.Equal(0, control.Top);
System\Windows\Forms\DateTimePickerTests.cs (1)
116Assert.Equal(0, control.Top);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
152Assert.Equal(0, control.Top);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
117Assert.Equal(0, control.Top);
System\Windows\Forms\DomainUpDownTests.cs (1)
141_sub.Top.Should().Be(0);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
108Assert.Equal(0, control.Top);
System\Windows\Forms\FormTests.cs (1)
154Assert.Equal(0, control.Top);
System\Windows\Forms\GroupBoxTests.cs (1)
96Assert.Equal(0, control.Top);
System\Windows\Forms\HScrollBarTests.cs (1)
110Assert.Equal(0, control.Top);
System\Windows\Forms\LabelTests.cs (1)
106Assert.Equal(0, control.Top);
System\Windows\Forms\ListBoxTests.cs (1)
125Assert.Equal(0, control.Top);
System\Windows\Forms\ListControlTests.cs (1)
104Assert.Equal(0, control.Top);
System\Windows\Forms\ListViewTests.cs (1)
142Assert.Equal(0, control.Top);
System\Windows\Forms\MdiClientTests.cs (11)
81Assert.Equal(0, control.Top); 543Assert.Equal(0, control.Top); 562Assert.Equal(0, control.Top); 645Assert.Equal(0, control.Top); 667Assert.Equal(0, control.Top); 779Assert.Equal(0, control.Top); 806Assert.Equal(0, control.Top); 931Assert.Equal(0, control.Top); 958Assert.Equal(0, control.Top); 1093Assert.Equal(0, control.Top); 1120Assert.Equal(0, control.Top);
System\Windows\Forms\MenuStripTests.cs (1)
140Assert.Equal(0, control.Top);
System\Windows\Forms\MonthCalendarTests.cs (1)
135Assert.Equal(0, control.Top);
System\Windows\Forms\PanelTests.cs (1)
107Assert.Equal(0, control.Top);
System\Windows\Forms\PictureBoxTests.cs (1)
104Assert.Equal(0, control.Top);
System\Windows\Forms\ProgressBarTests.cs (1)
96Assert.Equal(0, control.Top);
System\Windows\Forms\PropertyGridTests.cs (1)
156Assert.Equal(0, control.Top);
System\Windows\Forms\RadioButtonTests.cs (1)
111Assert.Equal(0, control.Top);
System\Windows\Forms\RichTextBoxTests.cs (1)
128Assert.Equal(0, control.Top);
System\Windows\Forms\ScrollableControlTests.cs (1)
107Assert.Equal(0, control.Top);
System\Windows\Forms\ScrollBarTests.cs (1)
98Assert.Equal(0, control.Top);
System\Windows\Forms\SplitterPanelTests.cs (9)
94Assert.Equal(0, control.Top); 469Assert.Equal(0, control.Top); 488Assert.Equal(0, control.Top); 547Assert.Equal(value.Y, control.Top); 569Assert.Equal(value.Y, control.Top); 834Assert.Equal(0, control.Top); 853Assert.Equal(0, control.Top); 1191Assert.Equal(0, control.Top); 1210Assert.Equal(0, control.Top);
System\Windows\Forms\SplitterTests.cs (3)
97Assert.Equal(0, control.Top); 1420Assert.Equal(control.Top, e.Y); 1422Assert.Equal(control.Top + control.Bounds.Height / 2, e.SplitY);
System\Windows\Forms\StatusStripTests.cs (1)
143Assert.Equal(0, control.Top);
System\Windows\Forms\TabControlTests.cs (1)
108Assert.Equal(0, control.Top);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
118Assert.Equal(0, control.Top);
System\Windows\Forms\TabPageTests.cs (18)
113Assert.Equal(0, control.Top); 222Assert.Equal(0, control.Top); 1905Assert.Equal(value.Y, control.Top); 1927Assert.Equal(value.Y, control.Top); 1995Assert.Equal(value.Y, control.Top); 2018Assert.Equal(value.Y, control.Top); 2096Assert.Equal(value.Y, control.Top); 2121Assert.Equal(value.Y, control.Top); 2220Assert.Equal(expected.Y, control.Top); 2250Assert.Equal(expected.Y, control.Top); 4351Assert.Equal(y, control.Top); 4372Assert.Equal(y, control.Top); 4488Assert.Equal(y, control.Top); 4510Assert.Equal(y, control.Top); 4643Assert.Equal(y, control.Top); 4667Assert.Equal(y, control.Top); 4822Assert.Equal(expected.Y, control.Top); 4852Assert.Equal(expected.Y, control.Top);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
112Assert.Equal(0, control.Top); 946Assert.Equal(value.Y, control.Top); 968Assert.Equal(value.Y, control.Top);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
148Assert.Equal(0, control.Top); 1972Assert.Equal(expected.Y, control.Top); 1994Assert.Equal(expected.Y, control.Top);
System\Windows\Forms\ToolStripPanelTests.cs (1)
111Assert.Equal(0, control.Top);
System\Windows\Forms\ToolStripTests.cs (2)
156Assert.Equal(0, control.Top); 311Assert.Equal(0, control.Top);
System\Windows\Forms\TreeViewTests.cs (1)
121Assert.Equal(0, control.Top);
System\Windows\Forms\UpDownBaseTests.cs (3)
124Assert.Equal(0, control.Top); 2769Assert.Equal(y, control.Top); 2801Assert.Equal(y, control.Top);
System\Windows\Forms\UserControlTests.cs (1)
114Assert.Equal(0, control.Top);
System\Windows\Forms\VScrollBarTests.cs (1)
109Assert.Equal(0, control.Top);
System\Windows\Forms\WebBrowserTests.cs (1)
91Assert.Equal(0, control.Top);
TextBoxBaseTests.cs (6)
6542Assert.Equal(y, control.Top); 6563Assert.Equal(y, control.Top); 6676Assert.Equal(y, control.Top); 6697Assert.Equal(y, control.Top); 6792Assert.Equal(y, control.Top); 6813Assert.Equal(y, control.Top);
TextBoxTests.cs (1)
115Assert.Equal(0, control.Top);
TrackBarTests.cs (3)
103Assert.Equal(0, control.Top); 3002Assert.Equal(y, control.Top); 3023Assert.Equal(y, control.Top);
WebBrowserBaseTests.cs (4)
81Assert.Equal(y, control.Top); 100Assert.Equal(y, control.Top); 197Assert.Equal(y, control.Top); 219Assert.Equal(y, control.Top);
System.Windows.Forms.UI.IntegrationTests (8)
FormTests.cs (4)
70Assert.True(form.Top <= screenWorkingArea.Y); 71Assert.True(form.Top >= screenWorkingArea.Y - borderSize); 131Assert.True(form.Top <= screenWorkingArea.Y); 132Assert.True(form.Top >= screenWorkingArea.Y - borderSize);
MDITests.cs (4)
29int childFormMinimizedYPositionFromBottom = form.ClientSize.Height - childForm.Top; 32Assert.Equal(childFormMinimizedYPositionFromBottom, form.ClientSize.Height - childForm.Top); 52int childFormMinimizedTop = childForm.Top; 55Assert.Equal(childFormMinimizedTop, childForm.Top);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
200g.DrawImage(parentBitmap, -childElementHost.Left, -childElementHost.Top);
WinFormsControlsTest (1)
TrackBars.cs (1)
50trackBar1.Height = ClientRectangle.Height - trackBar1.Top * 2;