422 references to Images
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
521
images.
Images
.Add(icon);
System.Windows.Forms (80)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (5)
384
if (actualIndex >= _imageList.
Images
.Count)
386
actualIndex = _imageList.
Images
.Count - 1;
391
return _imageList.
Images
[actualIndex];
457
get => _imageIndex.Index != ImageList.Indexer.DefaultIndex && _imageList is not null && _imageIndex.Index >= _imageList.
Images
.Count
458
? _imageList.
Images
.Count - 1
System\Windows\Forms\Controls\ImageList\ImageList.cs (11)
19
[DefaultProperty(nameof(
Images
))]
96
private bool ShouldSerializeColorDepth() =>
Images
.Count == 0;
175
private bool ShouldSerializeImageSize() =>
Images
.Count == 0;
188
if (
Images
.Empty)
202
Images
.Clear();
235
Images
.ResetKeys();
526
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
Images
.Count);
603
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
Images
.Count);
734
if (_originals is null ||
Images
.Empty)
755
=>
Images
is null
757
: $"{base.ToString()} Images.Count: {
Images
.Count}, ImageSize: {ImageSize}";
System\Windows\Forms\Controls\ImageList\ImageList.Indexer.cs (1)
62
return ImageList.
Images
.IndexOfKey(Key);
System\Windows\Forms\Controls\Labels\Label.cs (3)
376
return ImageList.
Images
[ImageIndexer.ActualIndex];
423
if (ImageList is not null && (index >= ImageList.
Images
.Count))
425
return ImageList.
Images
.Count - 1;
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (3)
62
return (Index < ImageList.
Images
.Count) ? Index : ImageList.
Images
.Count - 1;
65
return ImageList.
Images
.IndexOfKey(Key);
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
92
if (ImageList is null || ImageList.
Images
is null || imgIndex >= ImageList.
Images
.Count)
197
if (_imageIndexer.Index != ImageList.Indexer.DefaultIndex && ImageList is not null && _imageIndexer.Index >= ImageList.
Images
.Count)
199
return ImageList.
Images
.Count - 1;
System\Windows\Forms\Controls\ListView\ListView.cs (6)
1600
(_imageListState is null || _imageListState.
Images
.Count == 0) ? 0 : _imageListState.Handle);
3680
group.TitleImageIndex = group.ImageIndexer.ActualIndex < _imageListGroup.
Images
.Count
3682
: _imageListGroup.
Images
.Count - 1;
4308
int imageIndex = item.ImageIndexer.ActualIndex < _imageListLarge.
Images
.Count
4310
: _imageListLarge.
Images
.Count - 1;
5897
if (_imageListState is not null && _imageListState.
Images
.Count < 2)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (2)
268
return imageList is null || ImageIndexer.Index < imageList.
Images
.Count
270
: imageList.
Images
.Count - 1;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
477
return ImageList is null || ImageIndexer.Index < ImageList.
Images
.Count
479
: ImageList.
Images
.Count - 1;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
55
internal bool HasImage => _owningItem.ImageList is not null && _owningItem.ImageList.
Images
.Count > 0
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (1)
74
int nImages = imageList.
Images
.Count;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
1029
if (!disposing && ImageIndexer.ActualIndex < Owner.ImageList.
Images
.Count)
1032
image = Owner.ImageList.
Images
[ImageIndexer.ActualIndex];
1118
&& Owner.ImageList is not null && ImageIndexer.Index >= Owner.ImageList.
Images
.Count)
1120
return Owner.ImageList.
Images
.Count - 1;
System\Windows\Forms\Controls\TreeView\TreeNode.cs (9)
513
&& ImageIndexer.Index >= tv.ImageList.
Images
.Count)
515
return tv.ImageList.
Images
.Count - 1;
896
&& SelectedImageIndexer.Index >= tv.ImageList.
Images
.Count)
898
return tv.ImageList.
Images
.Count - 1;
1022
StateImageIndexer.Index >= tv.StateImageList.
Images
.Count)
1024
return tv.StateImageList.
Images
.Count - 1;
1643
StateImageKey = _treeView.StateImageList.
Images
.Keys[StateImageIndex];
2215
tv.ImageList is { } imageList && ImageIndexer.ActualIndex >= imageList.
Images
.Count
2216
? imageList.
Images
.Count - 1
System\Windows\Forms\Controls\TreeView\TreeView.cs (20)
543
if (ImageIndexer.Index >= _imageList.
Images
.Count)
545
return Math.Max(0, _imageList.
Images
.Count - 1);
631
if (StateImageList is not null && StateImageList.
Images
.Count > 0 && _internalStateImageList is not null)
710
if ((_stateImageList is null || _stateImageList.
Images
.Count == 0) && CheckBoxes)
1014
if (SelectedImageIndexer.Index >= _imageList.
Images
.Count)
1016
return Math.Max(0, _imageList.
Images
.Count - 1);
1765
if (_stateImageList is null || _stateImageList.
Images
.Count <= 0)
1771
Image[] images = new Image[_stateImageList.
Images
.Count + 1];
1772
images[0] = _stateImageList.
Images
[0];
1773
for (int i = 1; i <= _stateImageList.
Images
.Count; i++)
1775
images[i] = _stateImageList.
Images
[i - 1];
1780
_internalStateImageList.
Images
.Clear();
1781
_internalStateImageList.
Images
.AddRange(images);
1786
_internalStateImageList.
Images
.AddRange(images);
1972
if (_stateImageList is null || _stateImageList.
Images
.Count <= 0)
1983
Image[] images = new Image[_stateImageList.
Images
.Count + 1];
1984
images[0] = _stateImageList.
Images
[0];
1985
for (int i = 1; i <= _stateImageList.
Images
.Count; i++)
1987
images[i] = _stateImageList.
Images
[i - 1];
1990
newImageList.
Images
.AddRange(images);
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (1)
120
int nImages = imageList.
Images
.Count + 2;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
210
_selectorImageList.
Images
.Add(page.Icon.ToBitmap());
System\Windows\Forms\ImageIndexConverter.cs (1)
144
int nImages = imageList.
Images
.Count;
System\Windows\Forms\ImageKeyConverter.cs (2)
150
int nImages = imageList.
Images
.Count;
162
StringCollection imageKeys = imageList.
Images
.Keys;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
57
_imageList.
Images
.AddStrip(ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(PrintPreviewDialog), "PrintPreviewStrip"));
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
320
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(imageIndex, imageList.
Images
.Count);
327
g.DrawImage(imageList.
Images
[imageIndex], bounds);
System.Windows.Forms.Design (22)
System\Windows\Forms\Design\DesignBindingPicker.cs (6)
1915
defaultImages.
Images
.AddStrip(images);
1928
foreach (Image image in imageList.
Images
)
1930
copy.
Images
.Add(image);
1947
foreach (Image image in imageList.
Images
)
1950
copy.
Images
.Add(scaledImage);
2258
ImageList.ImageCollection? images = _picker?._treeViewCtrl?.ImageList?.
Images
;
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (1)
55
StringCollection imageKeys = imageList.
Images
.Keys;
System\Windows\Forms\Design\ImageIndexEditor.cs (3)
94
if (index < _currentImageList.
Images
.Count)
96
return _currentImageList.
Images
[index];
101
return _currentImageList.
Images
[key!];
System\Windows\Forms\Design\ImageListDesigner.cs (3)
30
ImageList.
Images
.Clear();
62
ImageList.
Images
.Clear();
75
ImageList.
Images
.Clear();
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (9)
78
_owner.ImageList.
Images
.SetKeyName(index, name);
91
_owner.ImageList.
Images
.Add(value.Name, value.Image);
95
_owner.ImageList.
Images
.Add(value.Image);
120
StringCollection imageKeys = _owner.ImageList.
Images
.Keys;
121
for (int i = 0; i < _owner.ImageList.
Images
.Count; i++)
123
_items.Add(new ImageListImage((Bitmap)_owner.ImageList.
Images
[i], imageKeys[i]));
134
_owner.ImageList.
Images
.Clear();
154
_owner.ImageList.
Images
.Add(imageListImage.Name, imageListImage.Image);
160
_owner.ImageList.
Images
.Clear();
System.Windows.Forms.Tests (294)
SerializableTypesTests.cs (1)
81
imageList.
Images
.Add(new Bitmap(16, 16));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
1616
imageCollection.
Images
.Add(Form.DefaultIcon);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (2)
144
imageList.
Images
.Add(Form.DefaultIcon);
189
imageList1.
Images
.Add(image);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
15
imageCollection.
Images
.Add(Form.DefaultIcon);
40
imageCollection.
Images
.Add(Form.DefaultIcon);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (3)
31
imageCollection.
Images
.Add(Form.DefaultIcon);
76
imageCollection.
Images
.Add(Form.DefaultIcon);
113
imageCollection.
Images
.Add(Form.DefaultIcon);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
998
imageCollection.
Images
.Add(Form.DefaultIcon);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (8)
75
sourceList.
Images
.Add(image);
88
newList.
Images
.Count.Should().Be(1);
89
Bitmap newImage = (Bitmap)newList.
Images
[0];
90
newImage.Size.Should().Be(sourceList.
Images
[0].Size);
98
sourceList.
Images
.Add(image);
110
newList.
Images
.Count.Should().Be(1);
111
Bitmap newImage = (Bitmap)newList.
Images
[0];
112
newImage.Size.Should().Be(sourceList.
Images
[0].Size);
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (4)
249
sourceList.
Images
.Add(image);
256
newList.
Images
.Count.Should().Be(1);
264
sourceList.
Images
.Add(image);
271
newList.
Images
.Count.Should().Be(1);
System\Windows\Forms\ButtonBaseTests.cs (4)
2154
imageList.
Images
.Add(image1);
2155
imageList.
Images
.Add(image2);
2305
imageList.
Images
.Add("Image1", image1);
2306
imageList.
Images
.Add("Image2", image2);
System\Windows\Forms\ColumnHeaderTests.cs (8)
375
imageList.
Images
.Add(image1);
376
imageList.
Images
.Add(image2);
461
imageList.
Images
.Add(image1);
462
imageList.
Images
.Add(image2);
594
imageList.
Images
.Add("Image1", image1);
595
imageList.
Images
.Add("Image2", image2);
683
imageList.
Images
.Add("Image1", image1);
684
imageList.
Images
.Add("Image2", image2);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (105)
20
ImageList.ImageCollection collection = list.
Images
;
30
ImageList.ImageCollection collection = list.
Images
;
38
ImageList.ImageCollection collection = list.
Images
;
56
list.
Images
.Add(image1bppIndexed);
57
list.
Images
.Add(image24bppRGb);
58
list.
Images
.Add(image32bppRGb);
59
list.
Images
.Add(image32bppArgbNotTransparent);
60
list.
Images
.Add(image32bppArgbTransparent);
61
ImageList.ImageCollection collection = list.
Images
;
104
list.
Images
.Add(image1bppIndexed);
105
list.
Images
.Add(image24bppRGb);
106
list.
Images
.Add(image32bppRGb);
107
list.
Images
.Add(image32bppArgbNotTransparent);
108
list.
Images
.Add(image32bppArgbTransparent);
109
ImageList.ImageCollection collection = list.
Images
;
199
ImageList.ImageCollection collection = list.
Images
;
222
ImageList.ImageCollection collection = list.
Images
;
233
list.
Images
.Add(image);
234
ImageList.ImageCollection collection = list.
Images
;
264
list.
Images
.Add(image);
265
ImageList.ImageCollection collection = list.
Images
;
285
list.
Images
.Add(image);
287
ImageList.ImageCollection collection = list.
Images
;
304
ImageList.ImageCollection collection = list.
Images
;
315
list.
Images
.Add(image);
316
ImageList.ImageCollection collection = list.
Images
;
325
list.
Images
.Add(image);
326
ImageList.ImageCollection collection = list.
Images
;
336
list.
Images
.Add(image);
337
ImageList.ImageCollection collection = list.
Images
;
354
ImageList.ImageCollection collection = list.
Images
;
384
ImageList.ImageCollection collection = list.
Images
;
400
ImageList.ImageCollection collection = list.
Images
;
413
ImageList.ImageCollection collection = list.
Images
;
443
ImageList.ImageCollection collection = list.
Images
;
487
ImageList.ImageCollection collection = list.
Images
;
532
ImageList.ImageCollection collection = list.
Images
;
556
ImageList.ImageCollection collection = list.
Images
;
601
ImageList.ImageCollection collection = list.
Images
;
625
ImageList.ImageCollection collection = list.
Images
;
658
ImageList.ImageCollection collection = list.
Images
;
702
ImageList.ImageCollection collection = list.
Images
;
747
ImageList.ImageCollection collection = list.
Images
;
771
ImageList.ImageCollection collection = list.
Images
;
792
ImageList.ImageCollection collection = list.
Images
;
804
ImageList.ImageCollection collection = list.
Images
;
820
ImageList.ImageCollection collection = list.
Images
;
844
ImageList.ImageCollection collection = list.
Images
;
865
ImageList.ImageCollection collection = list.
Images
;
873
ImageList.ImageCollection collection = list.
Images
;
881
ImageList.ImageCollection collection = list.
Images
;
909
ImageList.ImageCollection collection = list.
Images
;
926
ImageList.ImageCollection collection = list.
Images
;
940
ImageList.ImageCollection collection = list.
Images
;
951
ImageList.ImageCollection collection = list.
Images
;
963
ImageList.ImageCollection collection = list.
Images
;
972
ImageList.ImageCollection collection = list.
Images
;
993
ImageList.ImageCollection collection = list.
Images
;
1014
ImageList.ImageCollection collection = list.
Images
;
1036
ImageList.ImageCollection collection = list.
Images
;
1066
ImageList.ImageCollection collection = list.
Images
;
1086
ImageList.ImageCollection collection = list.
Images
;
1103
ImageList.ImageCollection collection = list.
Images
;
1116
ImageList.ImageCollection collection = list.
Images
;
1135
ImageList.ImageCollection collection = list.
Images
;
1159
ImageList.ImageCollection collection = list.
Images
;
1196
ImageList.ImageCollection collection = list.
Images
;
1242
ImageList.ImageCollection collection = list.
Images
;
1259
ImageList.ImageCollection collection = list.
Images
;
1280
ImageList.ImageCollection collection = list.
Images
;
1296
ImageList.ImageCollection collection = list.
Images
;
1310
ImageList.ImageCollection collection = list.
Images
;
1344
ImageList.ImageCollection collection = list.
Images
;
1382
ImageList.ImageCollection collection = list.
Images
;
1393
list.
Images
.Add(image);
1394
ImageList.ImageCollection collection = list.
Images
;
1408
ImageList.ImageCollection collection = list.
Images
;
1448
ImageList.ImageCollection collection = list.
Images
;
1500
ImageList.ImageCollection collection = list.
Images
;
1545
ImageList.ImageCollection collection = list.
Images
;
1566
ImageList.ImageCollection collection = list.
Images
;
1588
ImageList.ImageCollection collection = list.
Images
;
1599
list.
Images
.Add(image);
1600
ImageList.ImageCollection collection = list.
Images
;
1608
IList collection = list.
Images
;
1616
ICollection collection = list.
Images
;
1624
ICollection collection = list.
Images
;
1637
list.
Images
.Add(image);
1638
IList collection = list.
Images
;
1658
list.
Images
.Add(image);
1660
IList collection = list.
Images
;
1677
IList collection = list.
Images
;
1690
list.
Images
.Add(image);
1691
IList collection = list.
Images
;
1709
list.
Images
.Add(image);
1710
IList collection = list.
Images
;
1720
list.
Images
.Add(image);
1721
IList collection = list.
Images
;
1738
IList collection = list.
Images
;
1754
IList collection = list.
Images
;
1769
IList collection = list.
Images
;
1785
IList collection = list.
Images
;
1806
IList collection = list.
Images
;
1821
IList collection = list.
Images
;
1837
IList collection = list.
Images
;
System\Windows\Forms\ImageListStreamerTests.cs (4)
38
Assert.Equal(imageListBf.
Images
.Count, imageListMs.
Images
.Count);
65
Assert.Equal(imageListBf.
Images
.Count, imageListMs.
Images
.Count);
System\Windows\Forms\ImageListTests.cs (54)
19
Assert.Empty(list.
Images
);
20
Assert.Same(list.
Images
, list.
Images
);
37
Assert.Empty(list.
Images
);
38
Assert.Same(list.
Images
, list.
Images
);
200
list.
Images
.Add(new Bitmap(10, 10));
394
list.
Images
.Add(new Bitmap(10, 10));
432
list.
Images
.Add(new Bitmap(10, 10));
462
sourceList.
Images
.Add(image);
473
Assert.Equal(new Size(32, 32), ((Image)Assert.Single(list.
Images
)).Size);
482
Assert.Equal(new Size(32, 32), ((Image)Assert.Single(list.
Images
)).Size);
499
sourceList.
Images
.Add(image);
510
Assert.Empty(list.
Images
);
526
sourceList.
Images
.Add(image);
535
Assert.Empty(list.
Images
);
551
sourceList.
Images
.Add(image);
560
Assert.Empty(list.
Images
);
576
sourceList.
Images
.Add(image);
584
Assert.Empty(list.
Images
);
600
sourceList.
Images
.Add(image);
608
Assert.Empty(list.
Images
);
621
Assert.Empty(list.
Images
);
625
list.
Images
.Add(new Bitmap(10, 10));
627
Assert.Empty(list.
Images
);
639
Assert.Empty(list.
Images
);
644
list.
Images
.Add(new Bitmap(10, 10));
646
Assert.Empty(list.
Images
);
810
list.
Images
.Add(new Bitmap(10, 10));
819
Assert.Empty(list.
Images
);
823
Assert.Empty(list.
Images
);
833
list.
Images
.Add(icon);
834
list.
Images
.Add(bitmap);
838
Assert.Throws<ObjectDisposedException>(list.
Images
.GetEnumerator);
839
list.
Images
.Count.Should().Be(0);
845
Assert.Empty(list.
Images
);
855
list.
Images
.Add(bitmap1);
856
list.
Images
.Add(bitmap2);
859
Assert.Equal(2, list.
Images
.Count);
864
Assert.Equal(2, list.
Images
.Count);
875
Assert.Empty(list.
Images
);
879
Assert.Empty(list.
Images
);
889
list.
Images
.Add(icon);
890
list.
Images
.Add(bitmap);
894
Assert.Empty(list.
Images
);
899
Assert.Empty(list.
Images
);
928
list.
Images
.Add(image);
942
list.
Images
.Add(image);
957
list.
Images
.Add(image);
971
list.
Images
.Add(image);
995
list.
Images
.Add(image);
1009
list.
Images
.Add(image);
1023
list.
Images
.Add(image);
1051
list.
Images
.Add(image);
System\Windows\Forms\LabelTests.cs (5)
617
imageList.
Images
.Add(bitmap1);
618
imageList.
Images
.Add(bitmap2);
651
imageList.
Images
.Add("key1", bitmap1);
652
imageList.
Images
.Add("key2", bitmap2);
711
imageList.
Images
.Add(bitmap);
System\Windows\Forms\ListViewGroupTests.cs (3)
216
groupImageList.
Images
.Add(new Bitmap(10, 10));
217
groupImageList.
Images
.Add(new Bitmap(20, 20));
357
groupImageList.
Images
.Add(value.Key, new Bitmap(10, 10));
System\Windows\Forms\ListViewTests.cs (5)
4293
nonEmptyImageList.
Images
.Add(new Bitmap(10, 10));
5050
imagecollection.
Images
.Add(Form.DefaultIcon);
5051
imagecollection.
Images
.Add(Form.DefaultIcon);
5054
imagecollection.
Images
.SetKeyName(0, "SmallA.bmp");
5055
imagecollection.
Images
.SetKeyName(1, "SmallABlue.bmp");
System\Windows\Forms\TabControlTests.cs (3)
1268
imageList.
Images
.Add(image1);
1269
imageList.
Images
.Add(image2);
1270
imageList.
Images
.Add(image3);
System\Windows\Forms\ToolStripItemTests.cs (13)
3695
imageList.
Images
.Add(image);
3716
imageList.
Images
.Add(image);
3763
imageList.
Images
.Add(image);
4103
imageList.
Images
.Add(image);
4148
imageList.
Images
.Add(image);
4500
imageList.
Images
.Add(image);
4643
imageList.
Images
.Add(image);
4785
imageList.
Images
.Add(image);
4863
imageList.
Images
.Add(image);
5002
imageList.
Images
.Add("Image", image);
5139
imageList.
Images
.Add(image);
5284
imageList.
Images
.Add("Image", image);
5376
imageList.
Images
.Add("Image", image);
System\Windows\Forms\TreeNodeTests.cs (39)
1001
imageList.
Images
.Add(image);
1040
imageList.
Images
.Add(image);
1074
imageList.
Images
.Add(image);
1105
imageList.
Images
.Add(image);
1122
imageList.
Images
.Add(image1);
1123
imageList.
Images
.Add(image2);
1187
imageList.
Images
.Add(image);
1256
imageList.
Images
.Add(image1);
1257
imageList.
Images
.Add(image2);
1413
imageList.
Images
.Add("Image1", image1);
1414
imageList.
Images
.Add("Image2", image2);
1533
imageList.
Images
.Add("Image1", image1);
1534
imageList.
Images
.Add("Image2", image2);
2983
imageList.
Images
.Add(image);
3022
imageList.
Images
.Add(image);
3056
imageList.
Images
.Add(image);
3087
imageList.
Images
.Add(image);
3104
imageList.
Images
.Add(image1);
3105
imageList.
Images
.Add(image2);
3169
imageList.
Images
.Add(image);
3240
imageList.
Images
.Add(image1);
3241
imageList.
Images
.Add(image2);
3397
imageList.
Images
.Add("Image1", image1);
3398
imageList.
Images
.Add("Image2", image2);
3517
imageList.
Images
.Add("Image1", image1);
3518
imageList.
Images
.Add("Image2", image2);
3606
imageList.
Images
.Add(image);
3649
imageList.
Images
.Add(image);
3698
imageList.
Images
.Add(image);
3730
imageList.
Images
.Add(image);
3755
imageList.
Images
.Add(image1);
3756
imageList.
Images
.Add(image2);
3906
imageList.
Images
.Add(image1);
3907
imageList.
Images
.Add(image2);
3967
imageList.
Images
.Add(image);
4145
imageList.
Images
.Add("Image1", image1);
4146
imageList.
Images
.Add("Image2", image2);
4284
imageList.
Images
.Add("Image1", image1);
4285
imageList.
Images
.Add("Image2", image2);
System\Windows\Forms\TreeViewTests.cs (27)
2102
imageList.
Images
.Add(new Bitmap(10, 10));
2103
imageList.
Images
.Add(new Bitmap(10, 10));
2126
imageList.
Images
.Add(new Bitmap(10, 10));
2127
imageList.
Images
.Add("imageKey", new Bitmap(10, 10));
2194
imageList.
Images
.Add(new Bitmap(10, 10));
2195
imageList.
Images
.Add(new Bitmap(10, 10));
2310
imageList.
Images
.Add(new Bitmap(10, 10));
2311
imageList.
Images
.Add("imageKey", new Bitmap(10, 10));
2336
imageList.
Images
.Add(new Bitmap(10, 10));
2337
imageList.
Images
.Add("imageKey", new Bitmap(10, 10));
2397
imageList.
Images
.Add(new Bitmap(10, 10));
2398
imageList.
Images
.Add("imageKey", new Bitmap(10, 10));
2421
imageList.
Images
.Add(new Bitmap(10, 10));
3462
imageList.
Images
.Add(new Bitmap(10, 10));
3463
imageList.
Images
.Add(new Bitmap(10, 10));
3486
imageList.
Images
.Add(new Bitmap(10, 10));
3487
imageList.
Images
.Add("imageKey", new Bitmap(10, 10));
3554
imageList.
Images
.Add(new Bitmap(10, 10));
3555
imageList.
Images
.Add(new Bitmap(10, 10));
3660
imageList.
Images
.Add(new Bitmap(10, 10));
3661
imageList.
Images
.Add("imageKey", new Bitmap(10, 10));
3686
imageList.
Images
.Add(new Bitmap(10, 10));
3687
imageList.
Images
.Add("imageKey", new Bitmap(10, 10));
3747
imageList.
Images
.Add(new Bitmap(10, 10));
3748
imageList.
Images
.Add("imageKey", new Bitmap(10, 10));
6015
stateImageList.
Images
.AddRange(images);
6085
stateImageList.
Images
.AddRange(images);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (2)
284
imageList.
Images
.Add(image);
329
imageList.
Images
.Add(image);
System.Windows.Forms.UI.IntegrationTests (3)
ToolStripTests.cs (3)
17
_sharedImageList.
Images
.Add("square", Image.FromFile("./Resources/image.png"));
51
Assert.Single(sharedImageList.
Images
);
59
Assert.Single(sharedImageList.
Images
);
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
43
imageList1.
Images
.SetKeyName(0, "dotnet.png");
WinFormsControlsTest (21)
CollectionEditors.cs (4)
26
imageList.
Images
.Add("SmallA", Image.FromFile("Images\\SmallA.bmp"));
27
imageList.
Images
.Add(Image.FromFile("Images\\SmallABlue.bmp"));
28
imageList.
Images
.Add("LargeA", Image.FromFile("Images\\LargeA.bmp"));
29
imageList.
Images
.Add(Image.FromFile("Images\\LargeABlue.bmp"));
ListViewTest.cs (7)
130
imageListSmall.
Images
.Add(Image.FromFile("Images\\SmallA.bmp"));
131
imageListSmall.
Images
.Add(Image.FromFile("Images\\SmallABlue.bmp"));
132
imageListLarge.
Images
.Add(Image.FromFile("Images\\LargeA.bmp"));
133
imageListLarge.
Images
.Add(Image.FromFile("Images\\LargeABlue.bmp"));
234
LargeImageList.
Images
.Clear();
250
LargeImageList.
Images
.Add(file, bitmap);
281
LargeImageList.
Images
[listView1.SelectedIndices[0]] = bitmap;
ListViewTest.Designer.cs (4)
53
this.imageList1.
Images
.SetKeyName(0, "SmallA.bmp");
54
this.imageList1.
Images
.SetKeyName(1, "SmallABlue.bmp");
104
this.imageList2.
Images
.SetKeyName(0, "LargeA.bmp");
105
this.imageList2.
Images
.SetKeyName(1, "LargeABlue.bmp");
MultipleControls.cs (4)
92
imageListSmall.
Images
.Add(Image.FromFile("Images\\SmallA.bmp"));
93
imageListSmall.
Images
.Add(Image.FromFile("Images\\SmallABlue.bmp"));
94
imageListLarge.
Images
.Add(Image.FromFile("Images\\LargeA.bmp"));
95
imageListLarge.
Images
.Add(Image.FromFile("Images\\LargeABlue.bmp"));
TreeViewTest.Designer.cs (2)
57
this.imageList1.
Images
.SetKeyName(0, "SmallA.bmp");
58
this.imageList1.
Images
.SetKeyName(1, "SmallABlue.bmp");