18 writes to Bottom
System.Windows.Forms (15)
System\Windows\Forms\Control.cs (2)
9734padding.Bottom = (int)Math.Round(padding.Bottom * dy); 9736margins.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)
305Bottom = value 340Bottom = value
95 references to Bottom
PresentationUI (6)
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
586return h + CellPadding.Top + CellPadding.Bottom; 672bounds.Height - CellPadding.Top - CellPadding.Bottom 682bounds.Height - CellPadding.Top - CellPadding.Bottom 690bounds.Height - CellPadding.Top - CellPadding.Bottom 717bounds.Height - CellPadding.Top - CellPadding.Bottom 725bounds.Height - CellPadding.Top - CellPadding.Bottom
System.Windows.Forms (24)
System\Windows\Forms\Control.cs (2)
9734padding.Bottom = (int)Math.Round(padding.Bottom * dy); 9736margins.Bottom = (int)Math.Round(margins.Bottom * dy);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
3621rectPadding.Y = bounds.Bottom - cellStyle.Padding.Bottom; 3622rectPadding.Height = cellStyle.Padding.Bottom; 3811borderAndPaddingWidths.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)
4194gripRectangle.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)
330Debug.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)
337_scrollMargin.Height += Padding.Bottom; 461ctlBottom += 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)
55Assert.Equal(expectedValue, owner.Padding.Bottom); 98Assert.Equal(4, owner.Padding.Bottom); 141Assert.Equal(4, owner.Padding.Bottom); 184Assert.Equal(4, owner.Padding.Bottom); 227Assert.Equal(expectedBottom, owner.Padding.Bottom);
System\Windows\Forms\PaddingConverterTests.cs (19)
154{ nameof(Padding.Bottom), 4 } 171{ nameof(Padding.Bottom), expected.Bottom } 193{ nameof(Padding.Bottom), 4 } 204{ nameof(Padding.Bottom), 4 } 214{ nameof(Padding.Bottom), 4 } 226{ nameof(Padding.Bottom), 4 } 237{ nameof(Padding.Bottom), 4 } 247{ nameof(Padding.Bottom), 4 } 259{ nameof(Padding.Bottom), 4 } 270{ nameof(Padding.Bottom), 4 } 280{ nameof(Padding.Bottom), 4 } 292{ nameof(Padding.Bottom), 4 } 303{ nameof(Padding.Bottom), 4 } 313{ nameof(Padding.Bottom), 4 } 325{ nameof(Padding.Bottom), new object() } 336{ nameof(Padding.Bottom), null } 385{ nameof(Padding.Bottom), 4 }, 410Assert.Equal(nameof(Padding.Bottom), properties[4].Name);
System\Windows\Forms\PaddingTests.cs (21)
22Assert.Equal(0, padding.Bottom); 37Assert.Equal(all, padding.Bottom); 59Assert.Equal(bottom, padding.Bottom); 73Assert.Equal(0, padding.Bottom); 91Assert.Equal(value, padding.Bottom); 109Assert.Equal(0, ((Padding)boxedPadding).Bottom); 129Assert.Equal(0, ((Padding)boxedPadding).Bottom); 146Assert.Equal(value, padding.Bottom); 161Assert.Equal(4, padding.Bottom); 179Assert.Equal(4, ((Padding)boxedPadding).Bottom); 196Assert.Equal(5, padding.Bottom); 211Assert.Equal(4, padding.Bottom); 229Assert.Equal(4, ((Padding)boxedPadding).Bottom); 246Assert.Equal(5, padding.Bottom); 261Assert.Equal(4, padding.Bottom); 279Assert.Equal(4, ((Padding)boxedPadding).Bottom); 296Assert.Equal(5, padding.Bottom); 311Assert.Equal(value, padding.Bottom); 320PropertyDescriptor property = properties[nameof(Padding.Bottom)]; 329Assert.Equal(0, ((Padding)boxedPadding).Bottom); 346Assert.Equal(value, padding.Bottom);