7 writes to ImageList
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\Label.cs (2)
396
ImageList
= null;
940
private void DetachImageList(object? sender, EventArgs e) =>
ImageList
= null;
System.Windows.Forms.Tests (5)
System\Windows\Forms\LabelTests.cs (5)
621
label.
ImageList
= imageList;
655
label.
ImageList
= imageList;
687
label.
ImageList
= imageList;
697
label.
ImageList
= imageList;
710
label.
ImageList
= imageList;
11 references to ImageList
System.Windows.Forms (8)
System\Windows\Forms\Controls\Labels\Label.cs (7)
374
if (image is null &&
ImageList
is not null && ImageIndexer.ActualIndex >= 0)
376
return
ImageList
.Images[ImageIndexer.ActualIndex];
423
if (
ImageList
is not null && (index >=
ImageList
.Images.Count))
425
return
ImageList
.Images.Count - 1;
510
ImageList? imageList =
ImageList
;
949
if (
ImageList
is { } imageList)
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (1)
24
get { return _owner.
ImageList
; }
System.Windows.Forms.Tests (3)
System\Windows\Forms\LabelTests.cs (3)
73
Assert.Null(control.
ImageList
);
688
Assert.Same(imageList, label.
ImageList
);
700
Assert.Null(label.
ImageList
);