21 references to UnionSizes
System.Windows.Forms (21)
winforms\Managed\System\WinForms\Button.cs (2)
119
return AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.
UnionSizes
(prefSize, Size);
139
return AutoSizeMode == AutoSizeMode.GrowAndShrink ? paddedSize : LayoutUtils.
UnionSizes
(paddedSize, Size);
winforms\Managed\System\WinForms\ButtonBase.cs (1)
962
return LayoutUtils.
UnionSizes
(prefSize + Padding.Size, MinimumSize);
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1336
maxCombinedBounds.Size = LayoutUtils.
UnionSizes
(maxCombinedBounds.Size, combinedSize);
winforms\Managed\System\WinForms\Control.cs (4)
6462
newBounds.Size = LayoutUtils.
UnionSizes
(newBounds.Size, MinimumSize);
11538
minSize = ScaleSize(LayoutUtils.
UnionSizes
(Size.Empty, minSize), // make sure we dont go below 0.
11544
maxSize = ScaleSize(LayoutUtils.
UnionSizes
(Size.Empty, maxSize), // make sure we dont go below 0.
11554
scaledSize = LayoutUtils.
UnionSizes
(scaledSize, minSize);
winforms\Managed\System\WinForms\Form.cs (2)
4816
Size adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.
UnionSizes
(prefSize, Size);
7157
Size minTrack = (AutoSize && formStateEx[FormStateExInModalSizingLoop] == 1) ? LayoutUtils.
UnionSizes
(minAutoSize, MinimumSize) : MinimumSize;
winforms\Managed\System\WinForms\Label.cs (1)
1288
proposedConstraints = LayoutUtils.
UnionSizes
(proposedConstraints,Size.Empty);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (2)
59
Size newSize = LayoutUtils.
UnionSizes
(bounds.Size, prefSize);
527
preferredSize = LayoutUtils.
UnionSizes
(preferredSizeForDocking, preferredSizeForAnchoring);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
195
elementConstraints = LayoutUtils.
UnionSizes
(new Size(1, 1), elementConstraints);
winforms\Managed\System\WinForms\ToolStrip.cs (4)
4331
size = LayoutUtils.
UnionSizes
(size, toolStripOverflowButton.Bounds.Size);
4334
size = LayoutUtils.
UnionSizes
(size, toolStripGrip.Bounds.Size);
4396
biggestItemSize = LayoutUtils.
UnionSizes
(biggestItemSize, item.Bounds.Size);
4454
biggestItemSize = LayoutUtils.
UnionSizes
(biggestItemSize, item.Bounds.Size);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
452
checkRectangle = LayoutUtils.Align(LayoutUtils.
UnionSizes
(maxCheckSize,maxImageSize), new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth-1, maxItemSize.Height), ContentAlignment.MiddleCenter);
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
604
content.Size = LayoutUtils.
UnionSizes
(Size.Empty, content.Size);
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
156
biggestItemSize = LayoutUtils.
UnionSizes
(biggestItemSize, item.Bounds.Size);