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