7 writes to ImageList
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\Label.cs (2)
394ImageList = null; 938private void DetachImageList(object? sender, EventArgs e) => ImageList = null;
System.Windows.Forms.Tests (5)
System\Windows\Forms\LabelTests.cs (5)
623label.ImageList = imageList; 657label.ImageList = imageList; 689label.ImageList = imageList; 699label.ImageList = imageList; 712label.ImageList = imageList;
11 references to ImageList
System.Windows.Forms (8)
System\Windows\Forms\Controls\Labels\Label.cs (7)
372if (image is null && ImageList is not null && ImageIndexer.ActualIndex >= 0) 374return ImageList.Images[ImageIndexer.ActualIndex]; 421if (ImageList is not null && (index >= ImageList.Images.Count)) 423return ImageList.Images.Count - 1; 508ImageList? imageList = ImageList; 947if (ImageList is { } imageList)
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
24get { return _owner.ImageList; }
System.Windows.Forms.Tests (3)
System\Windows\Forms\LabelTests.cs (3)
75Assert.Null(control.ImageList); 690Assert.Same(imageList, label.ImageList); 702Assert.Null(label.ImageList);