7 writes to imageBounds
System.Windows.Forms (7)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (7)
1325layout.imageBounds = LayoutUtils.Align(size, maxBounds, imageAlign); 1349LayoutUtils.SplitRegion(maxCombinedBounds, imageSize, (AnchorStyles) textImageRelation, out layout.imageBounds, out layout.textBounds); 1352LayoutUtils.SplitRegion(maxCombinedBounds, textSize, (AnchorStyles) LayoutUtils.GetOppositeTextImageRelation(textImageRelation), out layout.textBounds, out layout.imageBounds); 1355LayoutUtils.SplitRegion(combinedBounds, imageSize, (AnchorStyles) textImageRelation, out layout.imageBounds, out layout.textBounds); 1356LayoutUtils.ExpandRegionsToFillBounds(maxCombinedBounds, (AnchorStyles) textImageRelation, ref layout.imageBounds, ref layout.textBounds); 1360layout.imageBounds = LayoutUtils.Align(imageSize, layout.imageBounds, imageAlign); 1406layout.imageBounds = Rectangle.Intersect(layout.imageBounds, layout.field);
18 references to imageBounds
System.Windows.Forms (18)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (15)
553DrawImageCore(graphics, Control.Image, layout.imageBounds, layout.imageStart, layout); 1133layout.focus = Rectangle.Union(textAdjusted, layout.imageBounds); 1360layout.imageBounds = LayoutUtils.Align(imageSize, layout.imageBounds, imageAlign); 1384if (textImageRelation == TextImageRelation.ImageBeforeText && layout.imageBounds.Size.Width != 0) { 1386layout.imageBounds.Width = Math.Max(0, Math.Min(maxBounds.Width - layout.textBounds.Width, layout.imageBounds.Width)); 1387layout.textBounds.X = layout.imageBounds.X + layout.imageBounds.Width; 1389if (textImageRelation == TextImageRelation.ImageAboveText && layout.imageBounds.Size.Height != 0) { 1391layout.imageBounds.Height = Math.Max(0, Math.Min(maxBounds.Height - layout.textBounds.Height, layout.imageBounds.Height)); 1392layout.textBounds.Y = layout.imageBounds.Y + layout.imageBounds.Height; 1405layout.imageStart = layout.imageBounds.Location; 1406layout.imageBounds = Rectangle.Intersect(layout.imageBounds, layout.field);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (2)
34layout.imageBounds.Offset(-1, -1); 45layout.focus.Width = layout.textBounds.Width + layout.imageBounds.Width - 1;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
4624Rectangle imageRect = LayoutData.imageBounds;