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)
621label.ImageList = imageList; 655label.ImageList = imageList; 687label.ImageList = imageList; 697label.ImageList = imageList; 710label.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)
73Assert.Null(control.ImageList); 688Assert.Same(imageList, label.ImageList); 700Assert.Null(label.ImageList);