164 references to Add
System.Windows.Forms (3)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
267
Add
(image);
378
Add
(image);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
210
_selectorImageList.Images.
Add
(page.Icon.ToBitmap());
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
1932
copy.Images.
Add
(image);
1952
copy.Images.
Add
(scaledImage);
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
121
source.
Add
(image);
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
95
_owner.ImageList.Images.
Add
(value.Image);
System.Windows.Forms.Tests (147)
SerializableTypesTests.cs (1)
81
imageList.Images.
Add
(new Bitmap(16, 16));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (1)
189
imageList1.Images.
Add
(image);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (2)
75
sourceList.Images.
Add
(image);
98
sourceList.Images.
Add
(image);
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (2)
249
sourceList.Images.
Add
(image);
264
sourceList.Images.
Add
(image);
System\Windows\Forms\ButtonBaseTests.cs (2)
2154
imageList.Images.
Add
(image1);
2155
imageList.Images.
Add
(image2);
System\Windows\Forms\ColumnHeaderTests.cs (4)
375
imageList.Images.
Add
(image1);
376
imageList.Images.
Add
(image2);
461
imageList.Images.
Add
(image1);
462
imageList.Images.
Add
(image2);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (46)
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);
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);
200
collection.
Add
(imageFiller1);
201
collection.
Add
(image);
202
collection.
Add
(imageFiller2);
233
list.Images.
Add
(image);
264
list.Images.
Add
(image);
285
list.Images.
Add
(image);
315
list.Images.
Add
(image);
325
list.Images.
Add
(image);
336
list.Images.
Add
(image);
534
collection.
Add
(value);
541
collection.
Add
(value);
559
collection.
Add
(value);
566
collection.
Add
(value);
793
Assert.Throws<ArgumentNullException>("value", () => collection.
Add
((Image)null));
807
Assert.Throws<ArgumentException>(() => collection.
Add
(value));
994
collection.
Add
(image);
1037
collection.
Add
(image);
1160
collection.
Add
(image1);
1161
collection.
Add
(image2);
1197
collection.
Add
(image1);
1198
collection.
Add
(image2);
1311
collection.
Add
(image1);
1312
collection.
Add
(image2);
1313
collection.
Add
(image3);
1345
collection.
Add
(image1);
1346
collection.
Add
(image2);
1347
collection.
Add
(image3);
1393
list.Images.
Add
(image);
1547
collection.
Add
(image2);
1568
collection.
Add
(image2);
1599
list.Images.
Add
(image);
1637
list.Images.
Add
(image);
1658
list.Images.
Add
(image);
1690
list.Images.
Add
(image);
1709
list.Images.
Add
(image);
1720
list.Images.
Add
(image);
System\Windows\Forms\ImageListTests.cs (24)
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);
499
sourceList.Images.
Add
(image);
526
sourceList.Images.
Add
(image);
551
sourceList.Images.
Add
(image);
576
sourceList.Images.
Add
(image);
600
sourceList.Images.
Add
(image);
625
list.Images.
Add
(new Bitmap(10, 10));
644
list.Images.
Add
(new Bitmap(10, 10));
810
list.Images.
Add
(new Bitmap(10, 10));
834
list.Images.
Add
(bitmap);
855
list.Images.
Add
(bitmap1);
856
list.Images.
Add
(bitmap2);
890
list.Images.
Add
(bitmap);
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 (3)
617
imageList.Images.
Add
(bitmap1);
618
imageList.Images.
Add
(bitmap2);
711
imageList.Images.
Add
(bitmap);
System\Windows\Forms\ListViewGroupTests.cs (2)
216
groupImageList.Images.
Add
(new Bitmap(10, 10));
217
groupImageList.Images.
Add
(new Bitmap(20, 20));
System\Windows\Forms\ListViewTests.cs (1)
4293
nonEmptyImageList.Images.
Add
(new Bitmap(10, 10));
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 (10)
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);
5139
imageList.Images.
Add
(image);
System\Windows\Forms\TreeNodeTests.cs (27)
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);
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);
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);
System\Windows\Forms\TreeViewTests.cs (17)
2102
imageList.Images.
Add
(new Bitmap(10, 10));
2103
imageList.Images.
Add
(new Bitmap(10, 10));
2126
imageList.Images.
Add
(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));
2336
imageList.Images.
Add
(new Bitmap(10, 10));
2397
imageList.Images.
Add
(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));
3554
imageList.Images.
Add
(new Bitmap(10, 10));
3555
imageList.Images.
Add
(new Bitmap(10, 10));
3660
imageList.Images.
Add
(new Bitmap(10, 10));
3686
imageList.Images.
Add
(new Bitmap(10, 10));
3747
imageList.Images.
Add
(new Bitmap(10, 10));
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (2)
284
imageList.Images.
Add
(image);
329
imageList.Images.
Add
(image);
WinFormsControlsTest (10)
CollectionEditors.cs (2)
27
imageList.Images.
Add
(Image.FromFile("Images\\SmallABlue.bmp"));
29
imageList.Images.
Add
(Image.FromFile("Images\\LargeABlue.bmp"));
ListViewTest.cs (4)
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"));
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"));