19 references to _imageInfoCollection
System.Windows.Forms (19)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (19)
40
for (int i = 0; i <
_imageInfoCollection
.Count; i++)
42
if ((
_imageInfoCollection
[i] is ImageInfo image) && (image.Name is not null) && (image.Name.Length != 0))
63
_imageInfoCollection
.Clear();
67
_imageInfoCollection
.Add(new ImageInfo());
229
Debug.Assert((Count ==
_imageInfoCollection
.Count), "The count of these two collections should be equal.");
247
Debug.Assert((Count ==
_imageInfoCollection
.Count), "The count of these two collections should be equal.");
354
_imageInfoCollection
.Add(new ImageInfo());
360
_imageInfoCollection
.Add(imageInfo);
419
_imageInfoCollection
.Clear();
476
if ((
_imageInfoCollection
[i] is not null) &&
477
(WindowsFormsUtils.SafeCompareStrings(
_imageInfoCollection
[i].Name, key, ignoreCase: true)))
486
if ((
_imageInfoCollection
[i] is not null) &&
487
(WindowsFormsUtils.SafeCompareStrings(
_imageInfoCollection
[i].Name, key, ignoreCase: true)))
553
if ((
_imageInfoCollection
is not null) && (index >= 0 && index <
_imageInfoCollection
.Count))
555
_imageInfoCollection
.RemoveAt(index);
583
if (
_imageInfoCollection
[index] is null)
585
_imageInfoCollection
[index] = new ImageInfo();
588
_imageInfoCollection
[index].Name = name;