67 references to Vertical
System.Windows.Forms (58)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
295
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
708
valBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
651
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
1131
valBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
499
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
789
valBounds.Height -= cellStyle.Padding.
Vertical
;
889
valBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1179
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
1953
valBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
411
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
772
imageBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (2)
552
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
935
valBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
531
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
670
valBounds.Height -= cellStyle.Padding.
Vertical
;
754
valBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
404
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
703
valBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (2)
147
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.Height + cellStyle.Padding.
Vertical
;
293
valBounds.Height -= cellStyle.Padding.
Vertical
;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
167
Math.Max(size.Height - _fontHeight - padding.
Vertical
, 0));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
745
int gripheight = Grip.GripThickness + Grip.Margin.
Vertical
;
2293
maxSize.Height = Math.Max(maxSize.Height, itemMargin.
Vertical
+ prefItemSize.Height);
2351
maxSize.Height += itemMargin.
Vertical
+ preferredSize.Height;
2372
maxSize.Height += overflowItemMargin.
Vertical
+ overflowItem.Bounds.Height;
2383
maxSize.Height += gripMargin.
Vertical
+ toolStrip.Grip.GripThickness;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (2)
42
preferredSize.Height += DropDownArrowRect.Height + _dropDownArrowPadding.
Vertical
;
77
int heightOfDropDown = s_dropDownArrowSize.Height + _dropDownArrowPadding.
Vertical
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (10)
96
rect.Y += UpScrollButton.Height + UpScrollButton.Margin.
Vertical
;
97
rect.Height -= UpScrollButton.Height + UpScrollButton.Margin.
Vertical
+ DownScrollButton.Height + DownScrollButton.Margin.
Vertical
;
330
_maxItemSize.Height = Math.Max(maxTextSize.Height + _textPadding.
Vertical
, Math.Max(maxCheckSize.Height + _checkPadding.
Vertical
, maxArrowSize.Height + _arrowPadding.
Vertical
));
335
_maxItemSize.Height = Math.Max(maxImageSize.Height + _imagePadding.
Vertical
, _maxItemSize.Height);
341
maxTextSize.Height = _maxItemSize.Height - _textPadding.
Vertical
;
342
maxImageSize.Height = _maxItemSize.Height - _imagePadding.
Vertical
;
343
maxCheckSize.Height = _maxItemSize.Height - _checkPadding.
Vertical
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (11)
36
displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.
Vertical
+ ToolStripPanel.Padding.
Vertical
) - Row.Margin.
Vertical
;
40
displayRect.Height = raftingDisplayRectangle.Height - Row.Margin.
Vertical
;
71
dragBounds.Height += Row.Margin.
Vertical
+ ToolStripPanel.Padding.
Vertical
+ 5;
194
if (cellMargin.
Vertical
>= requiredSpace)
204
freedSpace += cell.Margin.
Vertical
;
263
if (cellMargin.
Vertical
>= requiredSpace)
273
freedSpace += cell.Margin.
Vertical
;
573
int spaceOccupiedByCell = cell.Margin.
Vertical
+ cell.Bounds.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
149
insertionRect = new Rectangle(item.Bounds.Right, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.Height - (_owner.Margin.
Vertical
) - 1);
152
insertionRect = new Rectangle(item.Bounds.Left, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.Height - (_owner.Margin.
Vertical
) - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (4)
139
currentHeight += itemSize.Height + item.Margin.
Vertical
;
334
itemSize.Height = Math.Max(_displayRectangle.Height - itemMargin.
Vertical
, 0);
591
freedSpace += (horizontal) ? itemSize.Width + itemMargin.Horizontal : itemSize.Height + itemMargin.
Vertical
;
604
OverflowSpace += (horizontal) ? itemSize.Width + itemMargin.Horizontal : itemSize.Height + itemMargin.
Vertical
;
System\Windows\Forms\Layout\LayoutUtils.cs (2)
377
rect.Height += padding.
Vertical
;
386
rect.Height -= padding.
Vertical
;
System\Windows\Forms\Layout\TableLayout.cs (1)
854
int minHeight = GetElementSize(element, new Size(currentWidth - margin.Horizontal, 0)).Height + margin.
Vertical
;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
156
bounds.Height + margin.
Vertical
);
222
bounds.Height += margin.
Vertical
;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Padding.cs (1)
128
public readonly Size Size => new(Horizontal,
Vertical
);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ListBoxTests.cs (2)
6369
int expectedHeight = totalItemHeight + listBox.Padding.
Vertical
;
6393
int expectedHeight = totalItemHeight + listBox.Padding.
Vertical
;
System\Windows\Forms\PaddingTests.cs (4)
22
Assert.Equal(0, padding.
Vertical
);
37
Assert.Equal(all * 2, padding.
Vertical
);
59
Assert.Equal(top + bottom, padding.
Vertical
);
73
Assert.Equal(0, padding.
Vertical
);