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