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