11 references to Align
System.Windows.Forms (11)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (5)
1325
layout.imageBounds = LayoutUtils.
Align
(size, maxBounds, imageAlign);
1326
layout.textBounds = LayoutUtils.
Align
(textSize, maxBounds, textAlign);
1337
Rectangle combinedBounds = LayoutUtils.
Align
(combinedSize, maxCombinedBounds, ContentAlignment.MiddleCenter);
1360
layout.imageBounds = LayoutUtils.
Align
(imageSize, layout.imageBounds, imageAlign);
1361
layout.textBounds = LayoutUtils.
Align
(textSize, layout.textBounds, textAlign);
winforms\Managed\System\WinForms\ToolStripControlHost.cs (2)
813
Rectangle bounds = LayoutUtils.
Align
(size, this.Bounds, ControlAlign);
821
bounds = LayoutUtils.
Align
(control.Size, this.Bounds, ControlAlign);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (4)
417
checkRectangle = LayoutUtils.
Align
(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, maxCheckSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter);
422
imageRectangle = LayoutUtils.
Align
(maxImageSize, new Rectangle(nextPoint.X, nextPoint.Y, maxImageSize.Width, maxItemSize.Height), ContentAlignment.MiddleCenter);
433
checkRectangle = LayoutUtils.
Align
(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth, maxItemSize.Height), ContentAlignment.MiddleCenter);
452
checkRectangle = LayoutUtils.
Align
(LayoutUtils.UnionSizes(maxCheckSize,maxImageSize), new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth-1, maxItemSize.Height), ContentAlignment.MiddleCenter);