18 writes to Bottom
System.Windows.Forms (15)
System\Windows\Forms\Control.cs (2)
9705
padding.
Bottom
= (int)Math.Round(padding.Bottom * dy);
9707
margins.
Bottom
= (int)Math.Round(margins.Bottom * dy);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
278
value.
Bottom
= Math.Max(0, value.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
145
padding.
Bottom
= 0;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (8)
122
cellMargin.
Bottom
= 0;
129
cellMargin.
Bottom
= 0;
199
cellMargin.
Bottom
= 0;
206
cellMargin.
Bottom
= 0;
268
cellMargin.
Bottom
= 0;
275
cellMargin.
Bottom
= 0;
371
cellMargin.
Bottom
= 0;
379
cellMargin.
Bottom
= 0;
System\Windows\Forms\Layout\LayoutUtils.cs (2)
148
padding.
Bottom
= Math.Max(0, padding.Bottom);
427
padding.
Bottom
= padding.Right;
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (1)
110
padding.
Bottom
= value;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Padding.cs (1)
173
private void ResetBottom() =>
Bottom
= 0;
System.Windows.Forms.Tests (2)
System\Windows\Forms\PaddingTests.cs (2)
303
Bottom
= value
338
Bottom
= value
95 references to Bottom
PresentationUI (6)
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
577
return h + CellPadding.Top + CellPadding.
Bottom
;
663
bounds.Height - CellPadding.Top - CellPadding.
Bottom
673
bounds.Height - CellPadding.Top - CellPadding.
Bottom
681
bounds.Height - CellPadding.Top - CellPadding.
Bottom
708
bounds.Height - CellPadding.Top - CellPadding.
Bottom
716
bounds.Height - CellPadding.Top - CellPadding.
Bottom
System.Windows.Forms (24)
System\Windows\Forms\Control.cs (2)
9705
padding.Bottom = (int)Math.Round(padding.
Bottom
* dy);
9707
margins.Bottom = (int)Math.Round(margins.
Bottom
* dy);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
3619
rectPadding.Y = bounds.Bottom - cellStyle.Padding.
Bottom
;
3620
rectPadding.Height = cellStyle.Padding.
Bottom
;
3807
borderAndPaddingWidths.Height += cellStyle.Padding.
Bottom
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (3)
266
if (value.Left < 0 || value.Right < 0 || value.Top < 0 || value.
Bottom
< 0)
278
value.Bottom = Math.Max(0, value.
Bottom
);
293
Debug.Assert(value.
Bottom
>= 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
535
borderAndPaddingWidths.Height += cellStyle.Padding.
Bottom
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
310
int y = _detailsButton.Location.Y + _detailsButton.Height + _detailsButton.Margin.
Bottom
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4196
gripRectangle.Y = displayRect.Top - (Grip.GripThickness + Grip.Margin.
Bottom
);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
99
rect = LayoutUtils.InflateRect(rect, new Padding(0, Padding.Top, 0, Padding.
Bottom
));
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
67
dragBounds.Height += (nextRowBounds.Height >> 2) + Row.Margin.
Bottom
+ ToolStripPanel.RowsInternal[index + 1].Margin.Top;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
436
y = lastBottom - (itemMargin.
Bottom
+ itemSize.Height);
445
lastTop = y + itemSize.Height + itemMargin.
Bottom
;
System\Windows\Forms\Layout\ArrangedElement.cs (2)
74
Debug.Assert((value.Right >= 0 && value.Left >= 0 && value.Top >= 0 && value.
Bottom
>= 0), "who's setting margin negative?");
86
Debug.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)
329
Debug.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)
148
padding.Bottom = Math.Max(0, padding.
Bottom
);
426
temp = padding.
Bottom
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
343
_scrollMargin.Height += Padding.
Bottom
;
467
ctlBottom += current.Margin.
Bottom
;
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdgesConverter.cs (2)
69
|| _owner.Padding.
Bottom
!= -1))
100
get => _owner is null ? _bottom : _owner.Padding.
Bottom
;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
167
lines.Add(new SnapLine(SnapLineType.Horizontal, loc.Y + _primaryControl.Margin.
Bottom
, SnapLine.MarginBottom, SnapLinePriority.Always));
System\Windows\Forms\Design\ControlCommandSet.cs (1)
502
lines.Add(new SnapLine(SnapLineType.Horizontal, pt.Y + primaryControl.Height + primaryControl.Margin.
Bottom
, SnapLine.MarginBottom, SnapLinePriority.Always));
System\Windows\Forms\Design\ControlDesigner.cs (1)
361
snapLines.Add(new SnapLine(SnapLineType.Horizontal, margin.
Bottom
+ height, SnapLine.MarginBottom, SnapLinePriority.Always));
System.Windows.Forms.Primitives (17)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
289
ScaleToDpi(logicalPadding.
Bottom
, dpi));
System\Windows\Forms\Padding.cs (12)
125
public readonly int Vertical => Top +
Bottom
;
142
&&
Bottom
== other.
Bottom
;
148
new(p1.Left + p2.Left, p1.Top + p2.Top, p1.Right + p2.Right, p1.
Bottom
+ p2.
Bottom
);
154
new(p1.Left - p2.Left, p1.Top - p2.Top, p1.Right - p2.Right, p1.
Bottom
- p2.
Bottom
);
160
p1.Left == p2.Left && p1.Top == p2.Top && p1.Right == p2.Right && p1.
Bottom
== p2.
Bottom
;
167
public override readonly int GetHashCode() => HashCode.Combine(Left, Top, Right,
Bottom
);
169
public override readonly string ToString() => $"{{Left={Left},Top={Top},Right={Right},Bottom={
Bottom
}}}";
197
Debug.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)
52
new object[] { padding.Left, padding.Top, padding.Right, padding.
Bottom
});
62
new object[] { padding.Left, padding.Top, padding.Right, padding.
Bottom
});
97
(int)propertyValues[nameof(Padding.
Bottom
)]!);
115
return 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)
53
Assert.Equal(expectedValue, owner.Padding.
Bottom
);
96
Assert.Equal(4, owner.Padding.
Bottom
);
139
Assert.Equal(4, owner.Padding.
Bottom
);
182
Assert.Equal(4, owner.Padding.
Bottom
);
225
Assert.Equal(expectedBottom, owner.Padding.
Bottom
);
System\Windows\Forms\PaddingConverterTests.cs (19)
152
{ nameof(Padding.
Bottom
), 4 }
169
{ nameof(Padding.
Bottom
), expected.
Bottom
}
191
{ nameof(Padding.
Bottom
), 4 }
202
{ nameof(Padding.
Bottom
), 4 }
212
{ nameof(Padding.
Bottom
), 4 }
224
{ nameof(Padding.
Bottom
), 4 }
235
{ nameof(Padding.
Bottom
), 4 }
245
{ nameof(Padding.
Bottom
), 4 }
257
{ nameof(Padding.
Bottom
), 4 }
268
{ nameof(Padding.
Bottom
), 4 }
278
{ nameof(Padding.
Bottom
), 4 }
290
{ nameof(Padding.
Bottom
), 4 }
301
{ nameof(Padding.
Bottom
), 4 }
311
{ nameof(Padding.
Bottom
), 4 }
323
{ nameof(Padding.
Bottom
), new object() }
334
{ nameof(Padding.
Bottom
), null }
383
{ nameof(Padding.
Bottom
), 4 },
408
Assert.Equal(nameof(Padding.
Bottom
), properties[4].Name);
System\Windows\Forms\PaddingTests.cs (21)
20
Assert.Equal(0, padding.
Bottom
);
35
Assert.Equal(all, padding.
Bottom
);
57
Assert.Equal(bottom, padding.
Bottom
);
71
Assert.Equal(0, padding.
Bottom
);
89
Assert.Equal(value, padding.
Bottom
);
107
Assert.Equal(0, ((Padding)boxedPadding).
Bottom
);
127
Assert.Equal(0, ((Padding)boxedPadding).
Bottom
);
144
Assert.Equal(value, padding.
Bottom
);
159
Assert.Equal(4, padding.
Bottom
);
177
Assert.Equal(4, ((Padding)boxedPadding).
Bottom
);
194
Assert.Equal(5, padding.
Bottom
);
209
Assert.Equal(4, padding.
Bottom
);
227
Assert.Equal(4, ((Padding)boxedPadding).
Bottom
);
244
Assert.Equal(5, padding.
Bottom
);
259
Assert.Equal(4, padding.
Bottom
);
277
Assert.Equal(4, ((Padding)boxedPadding).
Bottom
);
294
Assert.Equal(5, padding.
Bottom
);
309
Assert.Equal(value, padding.
Bottom
);
318
PropertyDescriptor property = properties[nameof(Padding.
Bottom
)];
327
Assert.Equal(0, ((Padding)boxedPadding).
Bottom
);
344
Assert.Equal(value, padding.
Bottom
);