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