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