22 references to UnionSizes
System.Windows.Forms (22)
System\Windows\Forms\Control.cs (4)
5511
newBounds.Size = LayoutUtils.
UnionSizes
(newBounds.Size, MinimumSize);
10583
LayoutUtils.
UnionSizes
(Size.Empty, minSize), // make sure we don't go below 0.
10592
LayoutUtils.
UnionSizes
(Size.Empty, maxSize), // make sure we don't go below 0.
10601
scaledSize = LayoutUtils.
UnionSizes
(scaledSize, minSize);
System\Windows\Forms\Controls\Buttons\Button.cs (2)
89
return AutoSizeMode == AutoSizeMode.GrowAndShrink ? preferredSize : LayoutUtils.
UnionSizes
(preferredSize, Size);
107
return AutoSizeMode == AutoSizeMode.GrowAndShrink ? paddedSize : LayoutUtils.
UnionSizes
(paddedSize, Size);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
977
return LayoutUtils.
UnionSizes
(preferredSize + Padding.Size, MinimumSize);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
245
requiredSize = LayoutUtils.
UnionSizes
(requiredSize, imageRequiredSize);
529
maxCombinedBounds.Size = LayoutUtils.
UnionSizes
(maxCombinedBounds.Size, combinedSize);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1056
proposedConstraints = LayoutUtils.
UnionSizes
(proposedConstraints, Size.Empty);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
4219
size = LayoutUtils.
UnionSizes
(size, _toolStripOverflowButton.Bounds.Size);
4224
size = LayoutUtils.
UnionSizes
(size, _toolStripGrip.Bounds.Size);
4296
biggestItemSize = LayoutUtils.
UnionSizes
(biggestItemSize, item.Bounds.Size);
4353
biggestItemSize = LayoutUtils.
UnionSizes
(biggestItemSize, item.Bounds.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
399
_checkRectangle = LayoutUtils.Align(LayoutUtils.
UnionSizes
(maxCheckSize, maxImageSize), new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth - 1, _maxItemSize.Height), ContentAlignment.MiddleCenter);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
572
content.Size = LayoutUtils.
UnionSizes
(Size.Empty, content.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
141
biggestItemSize = LayoutUtils.
UnionSizes
(biggestItemSize, item.Bounds.Size);
System\Windows\Forms\Form.cs (2)
4271
Size adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.
UnionSizes
(prefSize, Size);
6881
Size minTrack = (AutoSize && _formStateEx[s_formStateExInModalSizingLoop] == 1) ? LayoutUtils.
UnionSizes
(_minAutoSize, MinimumSize) : MinimumSize;
System\Windows\Forms\Layout\DefaultLayout.cs (2)
59
Size newSize = LayoutUtils.
UnionSizes
(bounds.Size, prefSize);
685
preferredSize = LayoutUtils.
UnionSizes
(preferredSizeForDocking, preferredSizeForAnchoring);
System\Windows\Forms\Layout\FlowLayout.cs (1)
197
elementConstraints = LayoutUtils.
UnionSizes
(new Size(1, 1), elementConstraints);