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