11 references to Align
System.Windows.Forms (11)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (5)
502
layout.ImageBounds = LayoutUtils.
Align
(size, maxBounds, imageAlign);
503
layout.TextBounds = LayoutUtils.
Align
(textSize, maxBounds, textAlign);
515
Rectangle combinedBounds = LayoutUtils.
Align
(combinedSize, maxCombinedBounds, ContentAlignment.MiddleCenter);
563
layout.ImageBounds = LayoutUtils.
Align
(ImageSize, layout.ImageBounds, imageAlign);
564
layout.TextBounds = LayoutUtils.
Align
(textSize, layout.TextBounds, textAlign);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
651
Rectangle bounds = LayoutUtils.
Align
(size, Bounds, ControlAlign);
660
bounds = LayoutUtils.
Align
(_control.Size, Bounds, ControlAlign);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (4)
364
_checkRectangle = LayoutUtils.
Align
(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, maxCheckSize.Width, _maxItemSize.Height), ContentAlignment.MiddleCenter);
369
_imageRectangle = LayoutUtils.
Align
(maxImageSize, new Rectangle(nextPoint.X, nextPoint.Y, maxImageSize.Width, _maxItemSize.Height), ContentAlignment.MiddleCenter);
380
_checkRectangle = LayoutUtils.
Align
(maxCheckSize, new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth, _maxItemSize.Height), ContentAlignment.MiddleCenter);
399
_checkRectangle = LayoutUtils.
Align
(LayoutUtils.UnionSizes(maxCheckSize, maxImageSize), new Rectangle(nextPoint.X, nextPoint.Y, checkAndImageMarginWidth - 1, _maxItemSize.Height), ContentAlignment.MiddleCenter);