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