21 references to UnionSizes
System.Windows.Forms (21)
System\Windows\Forms\Control.cs (4)
5201
newBounds.Size = LayoutUtils.
UnionSizes
(newBounds.Size, MinimumSize);
9757
LayoutUtils.
UnionSizes
(Size.Empty, minSize), // make sure we don't go below 0.
9766
LayoutUtils.
UnionSizes
(Size.Empty, maxSize), // make sure we don't go below 0.
9775
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)
961
return LayoutUtils.
UnionSizes
(preferedSize + Padding.Size, MinimumSize);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
514
maxCombinedBounds.Size = LayoutUtils.
UnionSizes
(maxCombinedBounds.Size, combinedSize);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1058
proposedConstraints = LayoutUtils.
UnionSizes
(proposedConstraints, Size.Empty);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
4218
size = LayoutUtils.
UnionSizes
(size, _toolStripOverflowButton.Bounds.Size);
4223
size = LayoutUtils.
UnionSizes
(size, _toolStripGrip.Bounds.Size);
4295
biggestItemSize = LayoutUtils.
UnionSizes
(biggestItemSize, item.Bounds.Size);
4355
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)
567
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)
4208
Size adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.
UnionSizes
(prefSize, Size);
6759
Size minTrack = (AutoSize && _formStateEx[s_formStateExInModalSizingLoop] == 1) ? LayoutUtils.
UnionSizes
(_minAutoSize, MinimumSize) : MinimumSize;
System\Windows\Forms\Layout\DefaultLayout.cs (2)
60
Size newSize = LayoutUtils.
UnionSizes
(bounds.Size, prefSize);
681
preferredSize = LayoutUtils.
UnionSizes
(preferredSizeForDocking, preferredSizeForAnchoring);
System\Windows\Forms\Layout\FlowLayout.cs (1)
197
elementConstraints = LayoutUtils.
UnionSizes
(new Size(1, 1), elementConstraints);