64 references to Horizontal
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.cs (2)
505int totalPadding = button.Padding.Horizontal + button.Margin.Horizontal;
System.Windows.Forms (55)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
294int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 707valBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3616rectPadding.Width = bounds.Width - cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
650int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 1130valBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
498int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 788valBounds.Width -= cellStyle.Padding.Horizontal; 888valBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1178int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 1952valBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
410int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 771imageBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (2)
551int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 934valBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
530int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 669valBounds.Width -= cellStyle.Padding.Horizontal; 753valBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
403int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 702valBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (2)
146int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.Horizontal; 292valBounds.Width -= cellStyle.Padding.Horizontal;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
166Math.Max(size.Width - padding.Horizontal, 0),
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
85_detailsTextBox.Width = _overarchingTableLayoutPanel.Width - _detailsTextBox.Margin.Horizontal;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
738int gripwidth = Grip.GripThickness + Grip.Margin.Horizontal; 2292maxSize.Width += itemMargin.Horizontal + prefItemSize.Width; 2314maxSize.Width += overflowItemMargin.Horizontal + overflowItem.Bounds.Width; 2325maxSize.Width += gripMargin.Horizontal + toolStrip.Grip.GripThickness; 2352maxSize.Width = Math.Max(maxSize.Width, itemMargin.Horizontal + preferredSize.Width); 4184gripRectangle.X = ClientRectangle.Right - gripRectangle.Width - Grip.Margin.Horizontal;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (2)
38preferredSize.Width += DropDownArrowRect.Width + _dropDownArrowPadding.Horizontal; 59int widthOfDropDown = s_dropDownArrowSize.Width + _dropDownArrowPadding.Horizontal;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (11)
35displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal; 39displayRect.Width = raftingDisplayRectangle.Width - Row.Margin.Horizontal; 70dragBounds.Width += Row.Margin.Horizontal + ToolStripPanel.Padding.Horizontal + 5; 192if (cellMargin.Horizontal >= requiredSpace) 202freedSpace += cell.Margin.Horizontal; 261if (cellMargin.Horizontal >= requiredSpace) 271freedSpace += cell.Margin.Horizontal; 363int spaceOccupiedByCell = cell.Margin.Horizontal + cell.Bounds.Width;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
268return new Size(parent.Width - (parent.Padding.Horizontal - dropDownMenu.ImageMargin.Width), SeparatorThickness);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
350preferredSize.Width += DropDownButtonWidth + SplitterWidth + Padding.Horizontal;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
143insertionRect = new Rectangle(_owner.Margin.Left, item.Bounds.Top, _owner.Width - (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth); 146insertionRect = new Rectangle(_owner.Margin.Left, item.Bounds.Bottom, _owner.Width - (_owner.Margin.Horizontal) - 1, ToolStrip.s_insertionBeamWidth);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (4)
88currentWidth += itemSize.Width + item.Margin.Horizontal; 467itemSize.Width = Math.Max(toolStripPreferredSize.Width - itemMargin.Horizontal - 1, 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)
376rect.Width += padding.Horizontal; 385rect.Width -= padding.Horizontal;
System\Windows\Forms\Layout\TableLayout.cs (3)
735minWidth += margin.Horizontal; 736maxWidth += margin.Horizontal; 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)
155bounds.Width + margin.Horizontal, 211bounds.Width += margin.Horizontal;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Padding.cs (1)
128public readonly Size Size => new(Horizontal, Vertical);
System.Windows.Forms.Tests (4)
System\Windows\Forms\PaddingTests.cs (4)
21Assert.Equal(0, padding.Horizontal); 36Assert.Equal(all * 2, padding.Horizontal); 58Assert.Equal(right + left, padding.Horizontal); 72Assert.Equal(0, padding.Horizontal);