9 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)
458
_horizScrollBar.
Top
= ClientRectangle.Height - _horizScrollBar.Height;
464
_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)
417
controls[i].
Top
= adjustedLoc.Y;
38 references to Top
System.Windows.Forms (31)
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)
8304
Rectangle shift = new(-Left, -
Top
, parent.Width, parent.Height);
8309
rectangle.Top +
Top
,
8316
PInvokeCore.OffsetViewportOrgEx(hdc, -Left, -
Top
, lppt: null);
10141
/// <param name="y">The new <see cref="
Top
" /> property value of the control.</param>
12007
if ((wp->flags & SET_WINDOW_POS_FLAGS.SWP_NOMOVE) == 0 && (wp->x != Left || wp->y !=
Top
))
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
2575
int sy = (int)Math.Round(
Top
* dy);
2577
int sh = (int)Math.Round((
Top
+ Height) * dy - sy);
2615
_gridView.Location = new Point(0, _toolStrip.Height + _toolStrip.
Top
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
157
_titleLabel.
Top
,
164
_descriptionLabel.
Top
,
System\Windows\Forms\Controls\Splitter\Splitter.cs (6)
419
OnSplitterMoved(new SplitterEventArgs(Left,
Top
, (Left + bounds.Width / 2), (
Top
+ bounds.Height / 2)));
731
if (target.Bottom ==
Top
)
738
if (target.
Top
== Bottom)
824
int y = e.Y +
Top
;
957
int size = GetSplitSize(splitTarget, x - Left + _anchor.X, y -
Top
+ _anchor.Y);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
752
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)
1938
Top
,
1951
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)
4259
form.SetBounds(new Rectangle(Left,
Top
, adjustedSize.Width, adjustedSize.Height), BoundsSpecified.None);
4395
Point pointToSnap = new(button.Left + button.Width / 2, button.
Top
+ button.Height / 2);
5974
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)
104
Point pt = new(c.Left, c.
Top
);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
199
g.DrawImage(parentBitmap, -childElementHost.Left, -childElementHost.
Top
);