4 instantiations of ImageListImage
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
98imageListImages[i] = new ImageListImage(source[i]) { Name = source.Keys[i] };
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
123_items.Add(new ImageListImage((Bitmap)_owner.ImageList.Images[i], imageKeys[i]));
System\Windows\Forms\Design\ImageListImage.cs (2)
54return new ImageListImage((new Icon(stream)).ToBitmap()); 57return new ImageListImage((Bitmap)Image.FromStream(stream));
27 references to ImageListImage
System.Windows.Forms.Design (25)
System\Windows\Forms\Design\ImageCollectionEditor.cs (4)
48if (value is ImageListImage image) 65UITypeEditor editor = (UITypeEditor)TypeDescriptor.GetEditor(typeof(ImageListImage), typeof(UITypeEditor)); 95var imageListImages = new ImageListImage[source.Count]; 123else if (value[i] is ImageListImage imageListImage)
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (16)
48public ImageListImage this[int index] 55return (ImageListImage)_items[index]; 72set => this[index] = value is ImageListImage image ? image : throw new ArgumentException(null, nameof(index)); 86public int Add(ImageListImage value) 101public void AddRange(ImageListImage[] values) 104foreach (ImageListImage value in values) 113int IList.Add(object? value) => value is ImageListImage image ? Add(image) : throw new ArgumentException(null, nameof(value)); 137public bool Contains(ImageListImage value) => _items.Contains(value); 139bool IList.Contains(object? value) => value is ImageListImage image && Contains(image); 143public int IndexOf(ImageListImage? value) => value is ImageListImage imageListImage ? _items.IndexOf(imageListImage) : -1; 145int IList.IndexOf(object? value) => value is ImageListImage image ? IndexOf(image) : -1; 153ImageListImage imageListImage = (ImageListImage)_items[i]; 164public void Remove(ImageListImage value) 173if (value is ImageListImage image)
System\Windows\Forms\Design\ImageListImage.cs (1)
50public static ImageListImage ImageListImageFromStream(Stream stream, bool imageIsIcon)
System\Windows\Forms\Design\ImageListImageEditor.cs (4)
75ImageListImage image = LoadImageFromStream(file, name.EndsWith(".ico", StringComparison.Ordinal)); 99private static ImageListImage LoadImageFromStream(Stream stream, bool imageIsIcon) 107return ImageListImage.ImageListImageFromStream(ms, imageIsIcon); 116if (e.Value is ImageListImage image)
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\ImageListImageTests.cs (2)
66var result = ImageListImage.ImageListImageFromStream(memoryStream, imageIsIcon: false); 82var result = ImageListImage.ImageListImageFromStream(memoryStream, imageIsIcon: true);