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