56 references to Horizontal
System.Windows.Forms (56)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
340
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
751
valBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
4373
rectPadding.Width = bounds.Width - cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
762
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
1234
valBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
538
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
816
valBounds.Width -= cellStyle.Padding.
Horizontal
;
910
valBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
1372
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
2184
valBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (2)
476
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
836
imgBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (2)
663
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
1036
valBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (3)
665
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
805
valBounds.Width -= cellStyle.Padding.
Horizontal
;
883
valBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
438
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
732
valBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (2)
184
int borderAndPaddingWidths = borderWidthsRect.Left + borderWidthsRect.Width + cellStyle.Padding.
Horizontal
;
328
valBounds.Width -= cellStyle.Padding.
Horizontal
;
winforms\Managed\System\WinForms\GroupBox.cs (1)
220
return new Rectangle(padding.Left, fontHeight + padding.Top, Math.Max(size.Width - padding.
Horizontal
, 0), Math.Max(size.Height - fontHeight - padding.Vertical, 0));
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
326
rect.Width += padding.
Horizontal
;
334
rect.Width -= padding.
Horizontal
;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (3)
741
minWidth += margin.
Horizontal
;
742
maxWidth += margin.
Horizontal
;
846
int minHeight = GetElementSize(element, new Size(currentWidth-margin.
Horizontal
, 0)).Height + margin.Vertical;
winforms\Managed\System\WinForms\Padding.cs (1)
152
return new Size(
Horizontal
, Vertical);
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
122
details.Width = overarchingTableLayoutPanel.Width - details.Margin.
Horizontal
;
winforms\Managed\System\WinForms\ToolStrip.cs (8)
854
int gripwidth = Grip.GripThickness + Grip.Margin.
Horizontal
;
2495
maxSize.Width += itemMargin.
Horizontal
+ prefItemSize.Width;
2515
maxSize.Width += overflowItemMargin.
Horizontal
+ overflowItem.Bounds.Width;
2524
maxSize.Width += gripMargin.
Horizontal
+ toolStrip.Grip.GripThickness;
2551
maxSize.Width = Math.Max(maxSize.Width, itemMargin.
Horizontal
+ preferredSize.Width);
4296
gripRectangle.X = ClientRectangle.Right - gripRectangle.Width - Grip.Margin.
Horizontal
;
5482
insertionRect = new Rectangle(owner.Margin.Left, item.Bounds.Top, owner.Width - (owner.Margin.
Horizontal
) -1, ToolStrip.insertionBeamWidth);
5485
insertionRect = new Rectangle(owner.Margin.Left, item.Bounds.Bottom, owner.Width - (owner.Margin.
Horizontal
) -1, ToolStrip.insertionBeamWidth);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
260
preferredSize.Width += DropDownArrowRect.Width + scaledDropDownArrowPadding.
Horizontal
;
278
int widthOfDropDown = dropDownArrowSize.Width + scaledDropDownArrowPadding.
Horizontal
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (11)
945
displayRect.Width = ToolStripPanel.ParentInternal.DisplayRectangle.Width - (ToolStripPanel.Margin.
Horizontal
+ ToolStripPanel.Padding.
Horizontal
) - Row.Margin.
Horizontal
;
948
displayRect.Width = raftingDisplayRectangle.Width - Row.Margin.
Horizontal
;
976
dragBounds.Width += Row.Margin.
Horizontal
+ ToolStripPanel.Padding.
Horizontal
+5;
1085
if (cellMargin.
Horizontal
>= requiredSpace) {
1094
freedSpace += cell.Margin.
Horizontal
;
1150
if (cellMargin.
Horizontal
>= requiredSpace) {
1159
freedSpace += cell.Margin.
Horizontal
;
1245
int spaceOccupiedByCell = cell.Margin.
Horizontal
+ cell.Bounds.Width;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
420
return new Size(parent.Width - (parent.Padding.
Horizontal
- dropDownMenu.ImageMargin.Width), WINBAR_SEPARATORTHICKNESS);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
428
preferredSize.Width += DropDownButtonWidth + SplitterWidth + Padding.
Horizontal
;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (4)
123
currentWidth += itemSize.Width + item.Margin.
Horizontal
;
488
itemSize.Width = Math.Max(toolStripPreferredSize.Width - itemMargin.
Horizontal
-1, 0);
615
freedSpace += (horizontal) ? itemSize.Width + itemMargin.
Horizontal
: itemSize.Height + itemMargin.Vertical;
633
this.OverflowSpace += (horizontal) ? itemSize.Width + itemMargin.
Horizontal
: itemSize.Height + itemMargin.Vertical;