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