7 writes to ImageBounds
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (7)
502
layout.
ImageBounds
= LayoutUtils.Align(size, maxBounds, imageAlign);
532
out layout.
ImageBounds
,
543
out layout.
ImageBounds
);
553
out layout.
ImageBounds
,
558
ref layout.
ImageBounds
,
563
layout.
ImageBounds
= LayoutUtils.Align(ImageSize, layout.ImageBounds, imageAlign);
629
layout.
ImageBounds
= Rectangle.Intersect(layout.ImageBounds, layout.Field);
18 references to ImageBounds
System.Windows.Forms (18)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
551
DrawImageCore(e.GraphicsInternal, Control.Image, layout.
ImageBounds
, layout.ImageStart, layout);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (14)
287
? Rectangle.Union(textAdjusted, layout.
ImageBounds
)
563
layout.ImageBounds = LayoutUtils.Align(ImageSize, layout.
ImageBounds
, imageAlign);
595
if (textImageRelation == TextImageRelation.ImageBeforeText && layout.
ImageBounds
.Size.Width != 0)
598
layout.
ImageBounds
.Width = Math.Max(
600
Math.Min(maxBounds.Width - layout.TextBounds.Width, layout.
ImageBounds
.Width));
601
layout.TextBounds.X = layout.
ImageBounds
.X + layout.
ImageBounds
.Width;
604
if (textImageRelation == TextImageRelation.ImageAboveText && layout.
ImageBounds
.Size.Height != 0)
607
layout.
ImageBounds
.Height = Math.Max(
609
Math.Min(maxBounds.Height - layout.TextBounds.Height, layout.
ImageBounds
.Height));
610
layout.TextBounds.Y = layout.
ImageBounds
.Y + layout.
ImageBounds
.Height;
628
layout.ImageStart = layout.
ImageBounds
.Location;
629
layout.ImageBounds = Rectangle.Intersect(layout.
ImageBounds
, layout.Field);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (2)
32
layout.
ImageBounds
.Offset(-1, -1);
46
layout.Focus.Width = layout.TextBounds.Width + layout.
ImageBounds
.Width - 1;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
37
Rectangle imageRect = layoutData.
ImageBounds
;