39 references to Size
System.Windows.Forms (39)
winforms\Managed\System\WinForms\ArrangedElement.cs (2)
140
Size preferredSize = LayoutEngine.GetPreferredSize(this, constrainingSize - Padding.
Size
) + Padding.
Size
;
winforms\Managed\System\WinForms\Button.cs (1)
138
Size paddedSize = systemSize + Padding.
Size
;
winforms\Managed\System\WinForms\ButtonBase.cs (1)
962
return LayoutUtils.UnionSizes(prefSize + Padding.
Size
, MinimumSize);
winforms\Managed\System\WinForms\CheckBox.cs (1)
382
return size + Padding.
Size
;
winforms\Managed\System\WinForms\ComboBox.cs (2)
937
prefHeightCache = (short)(textSize.Height + SystemInformation.BorderSize.Height * 8 + Padding.
Size
.Height);
952
prefHeightCache = (short)(textSize.Height * itemCount + SystemInformation.BorderSize.Height * 16 + Padding.
Size
.Height);
winforms\Managed\System\WinForms\ContainerControl.cs (1)
708
Size totalPadding = borderSize + Padding.
Size
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
9065
int bordersAndPaddingWidth = 2*(this.BorderWidth + this.Padding.
Size
.Width);
9066
int bordersAndPaddingHeight = 2*(this.BorderWidth + this.Padding.
Size
.Height);
winforms\Managed\System\WinForms\DomainUpDown.cs (1)
610
return new Size(width, height) + Padding.
Size
;
winforms\Managed\System\WinForms\GroupBox.cs (1)
694
Size totalPadding = borderSize + new Size(0,fontHeight) + Padding.
Size
;
winforms\Managed\System\WinForms\Label.cs (1)
1239
Size bordersAndPadding = Padding.
Size
;
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (3)
186
Size elementConstraints = new Size(Int32.MaxValue, rowBounds.Height - elementProxy.Margin.
Size
.Height);
190
elementConstraints.Width = rowBounds.Width - rowSize.Width - elementProxy.Margin.
Size
.Width;
212
Size requiredSize = prefSize + elementProxy.Margin.
Size
;
winforms\Managed\System\WinForms\ListBox.cs (1)
785
return new Size(width, height) + Padding.
Size
;
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
873
return new Size(width, height) + Padding.
Size
;
winforms\Managed\System\WinForms\Panel.cs (1)
195
Size totalPadding = borderSize + Padding.
Size
;
winforms\Managed\System\WinForms\PictureBox.cs (1)
1222
Size bordersAndPadding = SizeFromClientSize(Size.Empty) + Padding.
Size
;
winforms\Managed\System\WinForms\StatusStrip.cs (2)
315
return GetPreferredSizeHorizontal(this, proposedSize) + Padding.
Size
;
318
return GetPreferredSizeVertical(this, proposedSize) + Padding.
Size
;
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
964
Size bordersAndPadding = SizeFromClientSize(Size.Empty) + Padding.
Size
;
winforms\Managed\System\WinForms\ToolStrip.cs (6)
1523
toolStripOverflowButton.Size = toolStripOverflowButton.GetPreferredSize(this.DisplayRectangle.Size - this.Padding.
Size
);
2458
Size prefSize = LayoutEngine.GetPreferredSize(this, proposedSize - padding.
Size
);
2467
return prefSize + newPadding.
Size
;
2481
Size defaultSize = toolStrip.DefaultSize - toolStrip.Padding.
Size
;
3427
toolStripOverflowButton.Size = toolStripOverflowButton.GetPreferredSize(this.DisplayRectangle.Size - this.Padding.
Size
);
5511
bounds.Inflate(owner.DisplayedItems[i].Margin.
Size
);
winforms\Managed\System\WinForms\ToolStripControlHost.cs (2)
617
return Control.GetPreferredSize(constrainingSize - Padding.
Size
) + Padding.
Size
;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
726
return Screen.GetWorkingArea(this.Bounds).Size - this.Padding.
Size
;
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
2717
return InternalLayout.GetPreferredSize(constrainingSize - Padding.
Size
) + Padding.
Size
;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
116
return preferredSize + this.Padding.
Size
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (2)
669
Size preferredSize = LayoutEngine.GetPreferredSize(this, constrainingSize - Padding.
Size
) + Padding.
Size
;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
63
return overflowButtonSize + toolStrip.OverflowButton.Margin.
Size
;
402
toolStripPreferredSize = ToolStrip.GetPreferredSizeVertical(toolStrip, Size.Empty) - toolStrip.Padding.
Size
;