3 writes to ImageSize
System.Windows.Forms (3)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
667ImageSize = Size.Empty, 694ImageSize = (Control.Image is null) ? Size.Empty : Control.Image.Size,
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
111layoutOptions.ImageSize = PreferredImageSize;
14 references to ImageSize
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (14)
213Size requiredImageSize = (ImageSize != Size.Empty) ? ImageSize + textImageInsetSize : Size.Empty; 241Size requiredSize = Compose(checkSize, ImageSize, textSize); 242if (EnsureImagePreferredSizeInset && ImageSize != Size.Empty) 301layout.Focus = ImageSize != Size.Empty 505if (ImageSize == Size.Empty || Text is null || Text.Length == 0 || textImageRelation == TextImageRelation.Overlay) 511Size size = ImageSize; 512if (layout.Options.DotNetOneButtonCompat && ImageSize != Size.Empty) 523Size maxTextSize = LayoutUtils.SubAlignedRegion(maxBounds.Size, ImageSize, textImageRelation); 528Size combinedSize = LayoutUtils.AddAlignedRegion(textSize, ImageSize, textImageRelation); 545ImageSize, 566ImageSize, 578layout.ImageBounds = LayoutUtils.Align(ImageSize, layout.ImageBounds, imageAlign); 710imageSize = {{ImageSize}}