3 writes to imageSize
System.Windows.Forms (3)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
1520
layout.
imageSize
= Size.Empty;
1546
layout.
imageSize
= (Control.Image == null) ? Size.Empty : Control.Image.Size;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
4705
layoutOptions.
imageSize
= PreferredImageSize;
12 references to imageSize
System.Windows.Forms (12)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (12)
1050
Size requiredImageSize = (
imageSize
!= Size.Empty) ?
imageSize
+ textImageInsetSize : Size.Empty;
1075
Size requiredSize = Compose(checkSize,
imageSize
, textSize);
1132
if (
imageSize
!= Size.Empty) {
1315
if(
imageSize
== Size.Empty || text == null || text.Length == 0 || textImageRelation == TextImageRelation.Overlay) {
1320
Size size =
imageSize
;
1321
if (layout.options.everettButtonCompat &&
imageSize
!= Size.Empty) {
1330
Size maxTextSize = LayoutUtils.SubAlignedRegion(maxBounds.Size,
imageSize
, textImageRelation);
1335
Size combinedSize = LayoutUtils.AddAlignedRegion(textSize,
imageSize
, textImageRelation);
1349
LayoutUtils.SplitRegion(maxCombinedBounds,
imageSize
, (AnchorStyles) textImageRelation, out layout.imageBounds, out layout.textBounds);
1355
LayoutUtils.SplitRegion(combinedBounds,
imageSize
, (AnchorStyles) textImageRelation, out layout.imageBounds, out layout.textBounds);
1360
layout.imageBounds = LayoutUtils.Align(
imageSize
, layout.imageBounds, imageAlign);