18 writes to Bottom
System.Windows.Forms (15)
System\Windows\Forms\Control.cs (2)
9823padding.Bottom = (int)Math.Round(padding.Bottom * dy); 9825margins.Bottom = (int)Math.Round(margins.Bottom * dy);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
278value.Bottom = Math.Max(0, value.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
145padding.Bottom = 0;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (8)
122cellMargin.Bottom = 0; 129cellMargin.Bottom = 0; 199cellMargin.Bottom = 0; 206cellMargin.Bottom = 0; 268cellMargin.Bottom = 0; 275cellMargin.Bottom = 0; 371cellMargin.Bottom = 0; 379cellMargin.Bottom = 0;
System\Windows\Forms\Layout\LayoutUtils.cs (2)
148padding.Bottom = Math.Max(0, padding.Bottom); 427padding.Bottom = padding.Right;
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (1)
110padding.Bottom = value;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Padding.cs (1)
173private void ResetBottom() => Bottom = 0;
System.Windows.Forms.Tests (2)
System\Windows\Forms\PaddingTests.cs (2)
303Bottom = value 338Bottom = value
95 references to Bottom
PresentationUI (6)
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
578return h + CellPadding.Top + CellPadding.Bottom; 664bounds.Height - CellPadding.Top - CellPadding.Bottom 674bounds.Height - CellPadding.Top - CellPadding.Bottom 682bounds.Height - CellPadding.Top - CellPadding.Bottom 709bounds.Height - CellPadding.Top - CellPadding.Bottom 717bounds.Height - CellPadding.Top - CellPadding.Bottom
System.Windows.Forms (24)
System\Windows\Forms\Control.cs (2)
9823padding.Bottom = (int)Math.Round(padding.Bottom * dy); 9825margins.Bottom = (int)Math.Round(margins.Bottom * dy);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
3619rectPadding.Y = bounds.Bottom - cellStyle.Padding.Bottom; 3620rectPadding.Height = cellStyle.Padding.Bottom; 3807borderAndPaddingWidths.Height += cellStyle.Padding.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (3)
266if (value.Left < 0 || value.Right < 0 || value.Top < 0 || value.Bottom < 0) 278value.Bottom = Math.Max(0, value.Bottom); 293Debug.Assert(value.Bottom >= 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
535borderAndPaddingWidths.Height += cellStyle.Padding.Bottom;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
310int y = _detailsButton.Location.Y + _detailsButton.Height + _detailsButton.Margin.Bottom;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4271gripRectangle.Y = displayRect.Top - (Grip.GripThickness + Grip.Margin.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
99rect = LayoutUtils.InflateRect(rect, new Padding(0, Padding.Top, 0, Padding.Bottom));
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
67dragBounds.Height += (nextRowBounds.Height >> 2) + Row.Margin.Bottom + ToolStripPanel.RowsInternal[index + 1].Margin.Top;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
436y = lastBottom - (itemMargin.Bottom + itemSize.Height); 445lastTop = y + itemSize.Height + itemMargin.Bottom;
System\Windows\Forms\Layout\ArrangedElement.cs (2)
74Debug.Assert((value.Right >= 0 && value.Left >= 0 && value.Top >= 0 && value.Bottom >= 0), "who's setting margin negative?"); 86Debug.Assert((value.Right >= 0 && value.Left >= 0 && value.Top >= 0 && value.Bottom >= 0), "who's setting padding negative?");
System\Windows\Forms\Layout\FlowLayout.cs (1)
329Debug.Assert(container.Children[0].Bounds.Y == container.DisplayRectangle.Y + container.DisplayRectangle.Height - container.Children[0].Bounds.Height - margin.Bottom);
System\Windows\Forms\Layout\LayoutUtils.cs (2)
148padding.Bottom = Math.Max(0, padding.Bottom); 426temp = padding.Bottom;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
343_scrollMargin.Height += Padding.Bottom; 467ctlBottom += current.Margin.Bottom;
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (2)
69|| _owner.Padding.Bottom != -1)) 100get => _owner is null ? _bottom : _owner.Padding.Bottom;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
167lines.Add(new SnapLine(SnapLineType.Horizontal, loc.Y + _primaryControl.Margin.Bottom, SnapLine.MarginBottom, SnapLinePriority.Always));
System\Windows\Forms\Design\ControlCommandSet.cs (1)
502lines.Add(new SnapLine(SnapLineType.Horizontal, pt.Y + primaryControl.Height + primaryControl.Margin.Bottom, SnapLine.MarginBottom, SnapLinePriority.Always));
System\Windows\Forms\Design\ControlDesigner.cs (1)
361snapLines.Add(new SnapLine(SnapLineType.Horizontal, margin.Bottom + height, SnapLine.MarginBottom, SnapLinePriority.Always));
System.Windows.Forms.Primitives (17)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
289ScaleToDpi(logicalPadding.Bottom, dpi));
System\Windows\Forms\Padding.cs (12)
125public readonly int Vertical => Top + Bottom; 142&& Bottom == other.Bottom; 148new(p1.Left + p2.Left, p1.Top + p2.Top, p1.Right + p2.Right, p1.Bottom + p2.Bottom); 154new(p1.Left - p2.Left, p1.Top - p2.Top, p1.Right - p2.Right, p1.Bottom - p2.Bottom); 160p1.Left == p2.Left && p1.Top == p2.Top && p1.Right == p2.Right && p1.Bottom == p2.Bottom; 167public override readonly int GetHashCode() => HashCode.Combine(Left, Top, Right, Bottom); 169public override readonly string ToString() => $"{{Left={Left},Top={Top},Right={Right},Bottom={Bottom}}}"; 197Debug.Assert(All == Left && Left == Top && Top == Right && Right == Bottom, "_all is true, but All/Left/Top/Right/Bottom inconsistent.");
System\Windows\Forms\PaddingConverter.cs (4)
52new object[] { padding.Left, padding.Top, padding.Right, padding.Bottom }); 62new object[] { padding.Left, padding.Top, padding.Right, padding.Bottom }); 97(int)propertyValues[nameof(Padding.Bottom)]!); 115return properties.Sort([nameof(Padding.All), nameof(Padding.Left), nameof(Padding.Top), nameof(Padding.Right), nameof(Padding.Bottom)]);
System.Windows.Forms.Tests (45)
System\Windows\Forms\DockPaddingEdgesTests.cs (5)
53Assert.Equal(expectedValue, owner.Padding.Bottom); 96Assert.Equal(4, owner.Padding.Bottom); 139Assert.Equal(4, owner.Padding.Bottom); 182Assert.Equal(4, owner.Padding.Bottom); 225Assert.Equal(expectedBottom, owner.Padding.Bottom);
System\Windows\Forms\PaddingConverterTests.cs (19)
153{ nameof(Padding.Bottom), 4 } 170{ nameof(Padding.Bottom), expected.Bottom } 192{ nameof(Padding.Bottom), 4 } 203{ nameof(Padding.Bottom), 4 } 213{ nameof(Padding.Bottom), 4 } 225{ nameof(Padding.Bottom), 4 } 236{ nameof(Padding.Bottom), 4 } 246{ nameof(Padding.Bottom), 4 } 258{ nameof(Padding.Bottom), 4 } 269{ nameof(Padding.Bottom), 4 } 279{ nameof(Padding.Bottom), 4 } 291{ nameof(Padding.Bottom), 4 } 302{ nameof(Padding.Bottom), 4 } 312{ nameof(Padding.Bottom), 4 } 324{ nameof(Padding.Bottom), new object() } 335{ nameof(Padding.Bottom), null } 384{ nameof(Padding.Bottom), 4 }, 409Assert.Equal(nameof(Padding.Bottom), properties[4].Name);
System\Windows\Forms\PaddingTests.cs (21)
20Assert.Equal(0, padding.Bottom); 35Assert.Equal(all, padding.Bottom); 57Assert.Equal(bottom, padding.Bottom); 71Assert.Equal(0, padding.Bottom); 89Assert.Equal(value, padding.Bottom); 107Assert.Equal(0, ((Padding)boxedPadding).Bottom); 127Assert.Equal(0, ((Padding)boxedPadding).Bottom); 144Assert.Equal(value, padding.Bottom); 159Assert.Equal(4, padding.Bottom); 177Assert.Equal(4, ((Padding)boxedPadding).Bottom); 194Assert.Equal(5, padding.Bottom); 209Assert.Equal(4, padding.Bottom); 227Assert.Equal(4, ((Padding)boxedPadding).Bottom); 244Assert.Equal(5, padding.Bottom); 259Assert.Equal(4, padding.Bottom); 277Assert.Equal(4, ((Padding)boxedPadding).Bottom); 294Assert.Equal(5, padding.Bottom); 309Assert.Equal(value, padding.Bottom); 318PropertyDescriptor property = properties[nameof(Padding.Bottom)]; 327Assert.Equal(0, ((Padding)boxedPadding).Bottom); 344Assert.Equal(value, padding.Bottom);