7 writes to ImageBounds
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (7)
517layout.ImageBounds = LayoutUtils.Align(size, maxBounds, imageAlign); 547out layout.ImageBounds, 558out layout.ImageBounds); 568out layout.ImageBounds, 573ref layout.ImageBounds, 578layout.ImageBounds = LayoutUtils.Align(ImageSize, layout.ImageBounds, imageAlign); 644layout.ImageBounds = Rectangle.Intersect(layout.ImageBounds, layout.Field);
19 references to ImageBounds
System.Windows.Forms (19)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
643DrawImageCore(e.GraphicsInternal, Control.Image, layout.ImageBounds, layout.ImageStart, layout);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (14)
302? Rectangle.Union(textAdjusted, layout.ImageBounds) 578layout.ImageBounds = LayoutUtils.Align(ImageSize, layout.ImageBounds, imageAlign); 610if (textImageRelation == TextImageRelation.ImageBeforeText && layout.ImageBounds.Size.Width != 0) 613layout.ImageBounds.Width = Math.Max( 615Math.Min(maxBounds.Width - layout.TextBounds.Width, layout.ImageBounds.Width)); 616layout.TextBounds.X = layout.ImageBounds.X + layout.ImageBounds.Width; 619if (textImageRelation == TextImageRelation.ImageAboveText && layout.ImageBounds.Size.Height != 0) 622layout.ImageBounds.Height = Math.Max( 624Math.Min(maxBounds.Height - layout.TextBounds.Height, layout.ImageBounds.Height)); 625layout.TextBounds.Y = layout.ImageBounds.Y + layout.ImageBounds.Height; 643layout.ImageStart = layout.ImageBounds.Location; 644layout.ImageBounds = Rectangle.Intersect(layout.ImageBounds, layout.Field);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (2)
32layout.ImageBounds.Offset(-1, -1); 46layout.Focus.Width = layout.TextBounds.Width + layout.ImageBounds.Width - 1;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
37Rectangle imageRect = layoutData.ImageBounds;
System\Windows\Forms\Rendering\Button\AnimatedPopupButtonRenderer.cs (1)
230(layout.TextBounds, layout.ImageBounds),