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