3 writes to ImageSize
System.Windows.Forms (3)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
575ImageSize = Size.Empty, 602ImageSize = (Control.Image is null) ? Size.Empty : Control.Image.Size,
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
111layoutOptions.ImageSize = PreferredImageSize;
13 references to ImageSize
System.Windows.Forms (13)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (13)
205Size requiredImageSize = (ImageSize != Size.Empty) ? ImageSize + textImageInsetSize : Size.Empty; 232Size requiredSize = Compose(checkSize, ImageSize, textSize); 286layout.Focus = ImageSize != Size.Empty 490if (ImageSize == Size.Empty || Text is null || Text.Length == 0 || textImageRelation == TextImageRelation.Overlay) 496Size size = ImageSize; 497if (layout.Options.DotNetOneButtonCompat && ImageSize != Size.Empty) 508Size maxTextSize = LayoutUtils.SubAlignedRegion(maxBounds.Size, ImageSize, textImageRelation); 513Size combinedSize = LayoutUtils.AddAlignedRegion(textSize, ImageSize, textImageRelation); 530ImageSize, 551ImageSize, 563layout.ImageBounds = LayoutUtils.Align(ImageSize, layout.ImageBounds, imageAlign); 695imageSize = {{ImageSize}}