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