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