68 writes to Image
System.Windows.Forms (11)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1215
private void ResetImage() =>
Image
= null;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (3)
65
_detailsButton.
Image
= _expandImage;
77
_detailsButton.
Image
= _expandImage;
83
_detailsButton.
Image
= _collapseImage;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
207
_dropDownButton.
Image
= bitmap;
247
Image
= CreateResizedBitmap("dotdotdot", DotDotDotIconWidth, DotDotDotIconHeight)
5150
_dialogButton.
Image
= CreateResizedBitmap("dotdotdot", DotDotDotIconWidth, DotDotDotIconHeight);
5156
_dropDownButton.
Image
= CreateResizedBitmap("Arrow", DownArrowIconWidth, DownArrowIconHeight);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (3)
303
button.
Image
= _expandImage;
345
_detailsButton.
Image
= _detailsVisible ? _collapseImage : _expandImage;
387
_detailsButton.
Image
= _detailsVisible ? _collapseImage : _expandImage;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1110
button.
Image
= ScaleHelper.ScaleToDpi(buttonBitmap, ScaleHelper.InitialSystemDpi, disposeBitmap: true);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
59
_moveUp.
Image
= ScaleHelper.ScaleToDpi(moveUp, ScaleHelper.InitialSystemDpi, disposeBitmap: true);
64
_moveDown.
Image
= ScaleHelper.ScaleToDpi(moveDown, ScaleHelper.InitialSystemDpi, disposeBitmap: true);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (3)
71
_moveDownButton.
Image
= ScaleHelper.ScaleToDpi(moveDown, ScaleHelper.InitialSystemDpi, disposeBitmap: true);
76
_moveUpButton.
Image
= ScaleHelper.ScaleToDpi(moveUp, ScaleHelper.InitialSystemDpi, disposeBitmap: true);
81
_btnDelete.
Image
= ScaleHelper.ScaleToDpi(delete, ScaleHelper.InitialSystemDpi, disposeBitmap: true);
System.Windows.Forms.Tests (49)
System\Windows\Forms\ButtonBaseTests.cs (49)
830
Image
= image,
867
Image
= image,
904
Image
= image
958
Image
= image,
1404
control.
Image
= value;
1410
control.
Image
= value;
1425
control.
Image
= null;
1433
control.
Image
= value;
1449
control.
Image
= null;
1457
control.
Image
= value;
1474
control.
Image
= null;
1483
control.
Image
= value;
1518
control.
Image
= value;
1524
control.
Image
= value;
1571
control.
Image
= value;
1579
control.
Image
= value;
1627
control.
Image
= value;
1636
control.
Image
= value;
1679
control.
Image
= value;
1688
control.
Image
= value;
1746
control.
Image
= value;
1757
control.
Image
= value;
1781
control.
Image
= image;
1800
control.
Image
= image;
1828
control.
Image
= image;
2080
Image
= image
2239
Image
= image
2388
Image
= image
2815
Image
= image,
2848
Image
= image,
2870
Image
= image,
2913
Image
= image
2960
Image
= image,
4357
Image
= image,
4394
Image
= image,
4431
Image
= image
4485
Image
= image,
5120
Image
= image
5164
Image
= image,
5211
Image
= image
5268
Image
= image,
6949
Image
= image
6993
Image
= image,
7040
Image
= image
7097
Image
= image,
7379
Image
= image
7423
Image
= image,
7470
Image
= image
7527
Image
= image,
WinFormsControlsTest (2)
Buttons.cs (2)
108
Image
= SystemIcons.GetStockIcon(StockIconId.DesktopPC).ToBitmap()
117
Image
= Icon.ExtractIcon("regedit.exe", 0, 256).ToBitmap()
57 references to Image
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
401
if (value ==
Image
)
1193
ImageAnimator.UpdateFrames(
Image
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
548
if (Control.
Image
is not null)
551
DrawImageCore(e.GraphicsInternal, Control.
Image
, layout.ImageBounds, layout.ImageStart, layout);
602
ImageSize = (Control.
Image
is null) ? Size.Empty : Control.
Image
.Size,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
303
detailsWidth += _detailsButton.
Image
!.Width;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1105
if (button?.
Image
is not Bitmap buttonBitmap)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
57
if (_moveUp.
Image
is Bitmap moveUp)
62
if (_moveDown.
Image
is Bitmap moveDown)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (3)
69
if (_moveDownButton.
Image
is Bitmap moveDown)
74
if (_moveUpButton.
Image
is Bitmap moveUp)
79
if (_btnDelete.
Image
is Bitmap delete)
System.Windows.Forms.Tests (44)
System\Windows\Forms\ButtonBaseTests.cs (41)
73
Assert.Null(control.
Image
);
1405
Assert.Same(value, control.
Image
);
1411
Assert.Same(value, control.
Image
);
1428
Assert.Null(control.
Image
);
1436
Assert.Same(value, control.
Image
);
1452
Assert.Null(control.
Image
);
1460
Assert.Same(value, control.
Image
);
1478
Assert.Null(control.
Image
);
1487
Assert.Same(value, control.
Image
);
1519
Assert.Same(value, control.
Image
);
1525
Assert.Same(value, control.
Image
);
1572
Assert.Same(value, control.
Image
);
1580
Assert.Same(value, control.
Image
);
1628
Assert.Same(value, control.
Image
);
1637
Assert.Same(value, control.
Image
);
1680
Assert.Same(value, control.
Image
);
1689
Assert.Same(value, control.
Image
);
1747
Assert.Same(value, control.
Image
);
1758
Assert.Same(value, control.
Image
);
1776
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.
Image
)];
1782
Assert.Same(image, control.
Image
);
1787
Assert.Null(control.
Image
);
1795
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.
Image
)];
1801
Assert.Same(image, control.
Image
);
1812
Assert.Null(control.
Image
);
1823
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ButtonBase))[nameof(ButtonBase.
Image
)];
1829
Assert.Same(image, control.
Image
);
1833
Assert.Null(control.
Image
);
2087
Assert.Same(image, control.
Image
);
2094
Assert.Null(control.
Image
);
2245
Assert.Null(control.
Image
);
2372
Assert.Null(control.
Image
);
2378
Assert.Null(control.
Image
);
2394
Assert.Same(image, control.
Image
);
2401
Assert.Null(control.
Image
);
2417
Assert.Null(control.
Image
);
2423
Assert.Null(control.
Image
);
2448
Assert.Null(control.
Image
);
2457
Assert.Null(control.
Image
);
2489
Assert.Null(control.
Image
);
2498
Assert.Null(control.
Image
);
System\Windows\Forms\ButtonTests.cs (1)
76
Assert.Null(control.
Image
);
System\Windows\Forms\CheckBoxTests.cs (1)
77
Assert.Null(control.
Image
);
System\Windows\Forms\RadioButtonTests.cs (1)
76
Assert.Null(control.
Image
);