7 writes to ImageList
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\Label.cs (2)
396ImageList = null; 940private 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)
374if (image is null && ImageList is not null && ImageIndexer.ActualIndex >= 0) 376return ImageList.Images[ImageIndexer.ActualIndex]; 423if (ImageList is not null && (index >= ImageList.Images.Count)) 425return ImageList.Images.Count - 1; 510ImageList? imageList = ImageList; 949if (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);