7 writes to ImageBounds
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (7)
502layout.ImageBounds = LayoutUtils.Align(size, maxBounds, imageAlign); 532out layout.ImageBounds, 543out layout.ImageBounds); 553out layout.ImageBounds, 558ref layout.ImageBounds, 563layout.ImageBounds = LayoutUtils.Align(ImageSize, layout.ImageBounds, imageAlign); 629layout.ImageBounds = Rectangle.Intersect(layout.ImageBounds, layout.Field);
18 references to ImageBounds
System.Windows.Forms (18)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
551DrawImageCore(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) 563layout.ImageBounds = LayoutUtils.Align(ImageSize, layout.ImageBounds, imageAlign); 595if (textImageRelation == TextImageRelation.ImageBeforeText && layout.ImageBounds.Size.Width != 0) 598layout.ImageBounds.Width = Math.Max( 600Math.Min(maxBounds.Width - layout.TextBounds.Width, layout.ImageBounds.Width)); 601layout.TextBounds.X = layout.ImageBounds.X + layout.ImageBounds.Width; 604if (textImageRelation == TextImageRelation.ImageAboveText && layout.ImageBounds.Size.Height != 0) 607layout.ImageBounds.Height = Math.Max( 609Math.Min(maxBounds.Height - layout.TextBounds.Height, layout.ImageBounds.Height)); 610layout.TextBounds.Y = layout.ImageBounds.Y + layout.ImageBounds.Height; 628layout.ImageStart = layout.ImageBounds.Location; 629layout.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;