571 instantiations of ImageList
Accessibility_Core_App (2)
CommonControl1.cs (2)
17ImageList imageListSmall = new(); 18ImageList imageListLarge = new();
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
501ImageList images = new ImageList();
System.Windows.Forms (6)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2067_largeButtonImages = new ImageList 3842_normalButtonImages = new ImageList();
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1785_internalStateImageList = new ImageList(); 1977ImageList newImageList = new();
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
182_selectorImageList = new ImageList
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
56_imageList = new ImageList();
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1910ImageList defaultImages = new() 1922ImageList copy = new() 1940ImageList copy = new()
System.Windows.Forms.Design.Tests (5)
System\Windows\Forms\Design\ImageListActionListTests.cs (1)
19_imageList = new();
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (1)
20_owner.Initialize(new ImageList());
System\Windows\Forms\Design\ImageListDesignerTests.cs (1)
14using ImageList imageList = new();
System\Windows\Forms\Design\ListViewActionListTests.cs (2)
47using ImageList largeImageList = new(); 56using ImageList smallImageList = new();
System.Windows.Forms.Tests (542)
SerializableTypesTests.cs (1)
75using (ImageList imageList = new()
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
1615using ImageList imageCollection = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (2)
143using ImageList imageList = new(); 187using ImageList imageList1 = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
14using ImageList imageCollection = new(); 39using ImageList imageCollection = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (3)
30using ImageList imageCollection = new(); 75using ImageList imageCollection = new(); 112using ImageList imageCollection = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
997using ImageList imageCollection = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (5)
73using ImageList sourceList = new(); 86using ImageList newList = new(); 96using ImageList sourceList = new(); 108using ImageList newList = new(); 133new ImageListStreamer(new ImageList()),
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (4)
247using ImageList sourceList = new(); 254using ImageList newList = new(); 262using ImageList sourceList = new(); 269using ImageList newList = new();
System\Windows\Forms\ButtonBaseTests.cs (23)
1467using ImageList imageList = new(); 2126using ImageList imageList = new(); 2153using ImageList imageList = new(); 2275using ImageList imageList = new(); 2304using ImageList imageList = new(); 2360yield return new object[] { new ImageList() }; 2398using ImageList imageList = new(); 2409using ImageList oldValue = new(); 2430yield return new object[] { new ImageList(), 1 }; 2467yield return new object[] { new ImageList(), 1 }; 2474using ImageList oldValue = new(); 2509using ImageList imageList = new(); 2518using ImageList imageList1 = new(); 2519using ImageList imageList2 = new(); 2540using ImageList imageList1 = new(); 2541using ImageList imageList2 = new(); 2578using ImageList imageList1 = new(); 2581using ImageList imageList2 = new(); 2606using ImageList imageList1 = new(); 2609using ImageList imageList2 = new(); 4605using ImageList imageList = new(); 4760using ImageList imageList = new(); 4904using ImageList imageList = new();
System\Windows\Forms\ColumnHeaderTests.cs (9)
345using ImageList imageList = new(); 374using ImageList imageList = new(); 460using ImageList imageList = new(); 562using ImageList imageList = new(); 593using ImageList imageList = new(); 682using ImageList imageList = new(); 727using ImageList imageList = new(); 1629using ImageList imageList = new(); 1630using ImageList imageList2 = new();
System\Windows\Forms\ImageList.ImageCollectionTests.cs (82)
17using ImageList list = new(); 27using ImageList list = new(); 37using ImageList list = new(); 46using ImageList list = new() 94using ImageList list = new() 195using ImageList list = new() 221using ImageList list = new(); 232using ImageList list = new(); 260using ImageList list = new() 281using ImageList list = new() 303using ImageList list = new(); 314using ImageList list = new(); 324using ImageList list = new(); 335using ImageList list = new(); 349using ImageList list = new(); 381using ImageList list = new(); 399using ImageList list = new(); 412using ImageList list = new(); 439using ImageList list = new() 483using ImageList list = new() 528using ImageList list = new() 552using ImageList list = new() 597using ImageList list = new() 621using ImageList list = new() 654using ImageList list = new() 698using ImageList list = new() 743using ImageList list = new() 767using ImageList list = new() 791using ImageList list = new(); 803using ImageList list = new(); 816using ImageList list = new() 840using ImageList list = new() 864using ImageList list = new(); 872using ImageList list = new(); 880using ImageList list = new(); 905using ImageList list = new() 922using ImageList list = new() 939using ImageList list = new(); 950using ImageList list = new(); 962using ImageList list = new(); 971using ImageList list = new(); 991using ImageList list = new(); 1013using ImageList list = new(); 1034using ImageList list = new(); 1065using ImageList list = new(); 1082using ImageList list = new(); 1102using ImageList list = new(); 1115using ImageList list = new(); 1134using ImageList list = new(); 1154using ImageList list = new(); 1191using ImageList list = new(); 1238using ImageList list = new(); 1258using ImageList list = new(); 1279using ImageList list = new(); 1295using ImageList list = new(); 1303using ImageList list = new(); 1337using ImageList list = new(); 1381using ImageList list = new(); 1392using ImageList list = new(); 1401using ImageList list = new(); 1441using ImageList list = new(); 1493using ImageList list = new(); 1542using ImageList list = new(); 1563using ImageList list = new(); 1587using ImageList list = new(); 1598using ImageList list = new(); 1607using ImageList list = new(); 1615using ImageList list = new(); 1623using ImageList list = new(); 1633using ImageList list = new() 1654using ImageList list = new() 1676using ImageList list = new(); 1689using ImageList list = new(); 1708using ImageList list = new(); 1719using ImageList list = new(); 1737using ImageList list = new(); 1753using ImageList list = new(); 1768using ImageList list = new(); 1784using ImageList list = new(); 1805using ImageList list = new(); 1820using ImageList list = new(); 1836using ImageList list = new();
System\Windows\Forms\ImageListStreamerTests.cs (4)
32using ImageList imageListBf = new(); 34using ImageList imageListMs = new(); 59using ImageList imageListBf = new(); 61using ImageList imageListMs = new();
System\Windows\Forms\ImageListTests.cs (57)
16using ImageList list = new(); 34using ImageList list = new(container); 51Assert.Throws<ArgumentNullException>("container", () => new ImageList(null)); 58using ImageList list = new() 74using ImageList list = new(); 108using ImageList list = new(); 124using ImageList list = new(); 170using ImageList list = new(); 187using ImageList list = new(); 208using ImageList list = new() 222using ImageList list = new(); 239using ImageList list = new() 255using ImageList list = new(); 289using ImageList list = new(); 305using ImageList list = new(); 364using ImageList list = new(); 381using ImageList list = new(); 401using ImageList list = new(); 416using ImageList list = new(); 424using ImageList list = new(); 431using ImageList list = new(); 456using ImageList sourceList = new() 466using ImageList list = new(); 493using ImageList sourceList = new() 505using ImageList list = new() 520using ImageList sourceList = new() 530using ImageList list = new() 545using ImageList sourceList = new() 555using ImageList list = new(); 570using ImageList sourceList = new() 579using ImageList list = new() 594using ImageList sourceList = new() 603using ImageList list = new(); 617using ImageList list = new(); 634using ImageList list = new(); 654using ImageList list = new() 679using ImageList list = new() 695using ImageList list = new(); 729using ImageList list = new(); 745using ImageList list = new(); 780using ImageList list = new(); 797using ImageList list = new(); 817using ImageList list = new(); 832using ImageList list = new(); 854using ImageList list = new(); 871using ImageList list = new(); 888using ImageList list = new(); 907using ImageList list = new(); 926using ImageList list = new(); 940using ImageList list = new(); 955using ImageList list = new(); 969using ImageList list = new(); 993using ImageList list = new(); 1007using ImageList list = new(); 1021using ImageList list = new(); 1035using ImageList list = new(); 1049using ImageList list = new();
System\Windows\Forms\LabelTests.cs (5)
613using ImageList imageList = new(); 647using ImageList imageList = new(); 686using ImageList imageList = new(); 696using ImageList imageList = new(); 707using ImageList imageList = new();
System\Windows\Forms\ListViewGroupTests.cs (2)
215using ImageList groupImageList = new(); 356using ImageList groupImageList = new();
System\Windows\Forms\ListViewTests.cs (217)
799foreach (Func<ImageList> imageListFactory in new Func<ImageList>[] { () => new ImageList(), () => null }) 905foreach (Func<ImageList> imageListFactory in new Func<ImageList>[] { () => new ImageList(), () => null }) 928yield return new object[] { false, View.Details, alignment, new ImageList(), true, 1, 0, 2, 1 }; 929yield return new object[] { false, View.LargeIcon, alignment, new ImageList(), true, 2, 1, 4, 2 }; 930yield return new object[] { false, View.List, alignment, new ImageList(), true, 1, 1, 2, 2 }; 931yield return new object[] { false, View.SmallIcon, alignment, new ImageList(), true, 2, 1, 4, 2 }; 932yield return new object[] { false, View.Details, alignment, new ImageList(), false, 0, 0, 1, 0 }; 933yield return new object[] { false, View.LargeIcon, alignment, new ImageList(), false, 0, 0, 2, 1 }; 934yield return new object[] { false, View.List, alignment, new ImageList(), false, 0, 0, 1, 1 }; 935yield return new object[] { false, View.SmallIcon, alignment, new ImageList(), false, 0, 0, 2, 1 }; 939foreach (Func<ImageList> imageListFactory in new Func<ImageList>[] { () => new ImageList(), () => null }) 1107using ImageList imageList = new(); 1128ImageList imageList = new(); 1544yield return new object[] { autoArrange, virtualMode, view, new ImageList() }; 1550yield return new object[] { autoArrange, false, View.Tile, new ImageList() }; 1580using ImageList imageList = new(); 1602yield return new object[] { true, false, View.Details, new ImageList() }; 1605yield return new object[] { true, false, View.LargeIcon, new ImageList() }; 1608yield return new object[] { true, false, View.List, new ImageList() }; 1611yield return new object[] { true, false, View.SmallIcon, new ImageList() }; 1614yield return new object[] { true, false, View.Tile, new ImageList() }; 1620yield return new object[] { autoArrange, true, View.Details, new ImageList() }; 1623yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList() }; 1626yield return new object[] { autoArrange, true, View.List, new ImageList() }; 1629yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList() }; 1634yield return new object[] { false, false, View.Details, new ImageList() }; 1637yield return new object[] { false, false, View.LargeIcon, new ImageList() }; 1640yield return new object[] { false, false, View.List, new ImageList() }; 1643yield return new object[] { false, false, View.SmallIcon, new ImageList() }; 1646yield return new object[] { false, false, View.Tile, new ImageList() }; 1688yield return new object[] { true, false, View.Details, new ImageList() }; 1691yield return new object[] { true, false, View.LargeIcon, new ImageList() }; 1694yield return new object[] { true, false, View.List, new ImageList() }; 1697yield return new object[] { true, false, View.SmallIcon, new ImageList() }; 1700yield return new object[] { true, false, View.Tile, new ImageList() }; 1706yield return new object[] { autoArrange, true, View.Details, new ImageList() }; 1709yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList() }; 1712yield return new object[] { autoArrange, true, View.List, new ImageList() }; 1715yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList() }; 1720yield return new object[] { false, false, View.Details, new ImageList() }; 1723yield return new object[] { false, false, View.LargeIcon, new ImageList() }; 1726yield return new object[] { false, false, View.List, new ImageList() }; 1729yield return new object[] { false, false, View.SmallIcon, new ImageList() }; 1732yield return new object[] { false, false, View.Tile, new ImageList() }; 1775using ImageList imageList1 = new(); 1776using ImageList imageList2 = new(); 1800using ImageList imageList1 = new(); 1801using ImageList imageList2 = new(); 2489yield return new object[] { autoArrange, virtualMode, view, new ImageList() }; 2495yield return new object[] { autoArrange, false, View.Tile, new ImageList() }; 2524using ImageList imageList = new(); 2546yield return new object[] { true, false, View.Details, new ImageList(), 0 }; 2549yield return new object[] { true, false, View.LargeIcon, new ImageList(), 1 }; 2552yield return new object[] { true, false, View.List, new ImageList(), 0 }; 2555yield return new object[] { true, false, View.SmallIcon, new ImageList(), 1 }; 2558yield return new object[] { true, false, View.Tile, new ImageList(), 0 }; 2564yield return new object[] { autoArrange, true, View.Details, new ImageList(), 0 }; 2567yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList(), 0 }; 2570yield return new object[] { autoArrange, true, View.List, new ImageList(), 0 }; 2573yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 0 }; 2578yield return new object[] { false, false, View.Details, new ImageList(), 0 }; 2581yield return new object[] { false, false, View.LargeIcon, new ImageList(), 0 }; 2584yield return new object[] { false, false, View.List, new ImageList(), 0 }; 2587yield return new object[] { false, false, View.SmallIcon, new ImageList(), 0 }; 2590yield return new object[] { false, false, View.Tile, new ImageList(), 0 }; 2631yield return new object[] { true, false, View.Details, new ImageList(), 0 }; 2634yield return new object[] { true, false, View.LargeIcon, new ImageList(), 1 }; 2637yield return new object[] { true, false, View.List, new ImageList(), 0 }; 2640yield return new object[] { true, false, View.SmallIcon, new ImageList(), 1 }; 2643yield return new object[] { true, false, View.Tile, new ImageList(), 0 }; 2649yield return new object[] { autoArrange, true, View.Details, new ImageList(), 0 }; 2652yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList(), 0 }; 2655yield return new object[] { autoArrange, true, View.List, new ImageList(), 0 }; 2658yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 0 }; 2663yield return new object[] { false, false, View.Details, new ImageList(), 0 }; 2666yield return new object[] { false, false, View.LargeIcon, new ImageList(), 0 }; 2669yield return new object[] { false, false, View.List, new ImageList(), 0 }; 2672yield return new object[] { false, false, View.SmallIcon, new ImageList(), 0 }; 2675yield return new object[] { false, false, View.Tile, new ImageList(), 0 }; 2683using ImageList imageList = new(); 2719using ImageList imageList1 = new(); 2720using ImageList imageList2 = new(); 2743using ImageList imageList1 = new(); 2744using ImageList imageList2 = new(); 3153yield return new object[] { autoArrange, virtualMode, view, new ImageList() }; 3159yield return new object[] { autoArrange, false, View.Tile, new ImageList() }; 3188using ImageList imageList = new(); 3210yield return new object[] { true, false, View.Details, new ImageList(), 1, 0 }; 3213yield return new object[] { true, false, View.LargeIcon, new ImageList(), 1, 0 }; 3216yield return new object[] { true, false, View.List, new ImageList(), 0, 0 }; 3219yield return new object[] { true, false, View.Tile, new ImageList(), 0, 0 }; 3225yield return new object[] { autoArrange, true, View.Details, new ImageList(), 1, 0 }; 3228yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3231yield return new object[] { autoArrange, true, View.List, new ImageList(), 0, 0 }; 3236yield return new object[] { false, false, View.Details, new ImageList(), 1, 0 }; 3239yield return new object[] { false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3242yield return new object[] { false, false, View.List, new ImageList(), 0, 0 }; 3245yield return new object[] { false, false, View.Tile, new ImageList(), 0, 0 }; 3251yield return new object[] { true, false, View.SmallIcon, new ImageList(), 2, 0 }; 3257yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3262yield return new object[] { false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3268yield return new object[] { true, false, View.SmallIcon, new ImageList(), 4, 2 }; 3274yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 2, 2 }; 3279yield return new object[] { false, false, View.SmallIcon, new ImageList(), 2, 2 }; 3321yield return new object[] { true, false, View.Details, new ImageList(), 1, 0 }; 3324yield return new object[] { true, false, View.LargeIcon, new ImageList(), 1, 0 }; 3327yield return new object[] { true, false, View.List, new ImageList(), 0, 0 }; 3330yield return new object[] { true, false, View.Tile, new ImageList(), 0, 0 }; 3336yield return new object[] { autoArrange, true, View.Details, new ImageList(), 1, 0 }; 3339yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3342yield return new object[] { autoArrange, true, View.List, new ImageList(), 0, 0 }; 3347yield return new object[] { false, false, View.Details, new ImageList(), 1, 0 }; 3350yield return new object[] { false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3353yield return new object[] { false, false, View.List, new ImageList(), 0, 0 }; 3356yield return new object[] { false, false, View.Tile, new ImageList(), 0, 0 }; 3362yield return new object[] { true, false, View.SmallIcon, new ImageList(), 2, 0 }; 3368yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3373yield return new object[] { false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3379yield return new object[] { true, false, View.SmallIcon, new ImageList(), 4, 2 }; 3385yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 2, 2 }; 3390yield return new object[] { false, false, View.SmallIcon, new ImageList(), 2, 2 }; 3399using ImageList imageList = new(); 3435using ImageList imageList1 = new(); 3436using ImageList imageList2 = new(); 3459using ImageList imageList1 = new(); 3460using ImageList imageList2 = new(); 3510yield return new object[] { useCompatibleStateImageBehavior, checkBoxes, autoArrange, virtualMode, view, new ImageList() }; 3518yield return new object[] { useCompatibleStateImageBehavior, false, true, false, View.Tile, new ImageList() }; 3522yield return new object[] { useCompatibleStateImageBehavior, false, false, false, View.Tile, new ImageList() }; 3553using ImageList imageList = new(); 3580yield return new object[] { true, checkBoxes, true, false, View.Details, new ImageList(), 0, 0 }; 3583yield return new object[] { true, checkBoxes, true, false, View.LargeIcon, new ImageList(), 0, 0 }; 3586yield return new object[] { true, checkBoxes, true, false, View.List, new ImageList(), 0, 0 }; 3589yield return new object[] { true, checkBoxes, true, false, View.SmallIcon, new ImageList(), 0, 0 }; 3595yield return new object[] { true, checkBoxes, autoArrange, true, View.Details, new ImageList(), 0, 0 }; 3598yield return new object[] { true, checkBoxes, autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3601yield return new object[] { true, checkBoxes, autoArrange, true, View.List, new ImageList(), 0, 0 }; 3604yield return new object[] { true, checkBoxes, autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3609yield return new object[] { true, checkBoxes, false, false, View.Details, new ImageList(), 0, 0 }; 3612yield return new object[] { true, checkBoxes, false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3615yield return new object[] { true, checkBoxes, false, false, View.List, new ImageList(), 0, 0 }; 3618yield return new object[] { true, checkBoxes, false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3623yield return new object[] { true, false, true, false, View.Tile, new ImageList(), 0, 0 }; 3627yield return new object[] { true, false, false, false, View.Tile, new ImageList(), 0, 0 }; 3632yield return new object[] { false, true, true, false, View.Details, new ImageList(), 1, 1 }; 3635yield return new object[] { false, true, true, false, View.LargeIcon, new ImageList(), 3, 1 }; 3638yield return new object[] { false, true, true, false, View.List, new ImageList(), 1, 1 }; 3641yield return new object[] { false, true, true, false, View.SmallIcon, new ImageList(), 3, 1 }; 3647yield return new object[] { false, true, autoArrange, true, View.Details, new ImageList(), 1, 1 }; 3650yield return new object[] { false, true, autoArrange, true, View.LargeIcon, new ImageList(), 1, 1 }; 3653yield return new object[] { false, true, autoArrange, true, View.List, new ImageList(), 1, 1 }; 3656yield return new object[] { false, true, autoArrange, true, View.SmallIcon, new ImageList(), 1, 1 }; 3661yield return new object[] { false, true, false, false, View.Details, new ImageList(), 1, 1 }; 3664yield return new object[] { false, true, false, false, View.LargeIcon, new ImageList(), 1, 1 }; 3667yield return new object[] { false, true, false, false, View.List, new ImageList(), 1, 1 }; 3670yield return new object[] { false, true, false, false, View.SmallIcon, new ImageList(), 1, 1 }; 3675yield return new object[] { false, false, true, false, View.Details, new ImageList(), 0, 0 }; 3678yield return new object[] { false, false, true, false, View.LargeIcon, new ImageList(), 1, 0 }; 3681yield return new object[] { false, false, true, false, View.List, new ImageList(), 0, 0 }; 3684yield return new object[] { false, false, true, false, View.SmallIcon, new ImageList(), 1, 0 }; 3687yield return new object[] { false, false, true, false, View.Tile, new ImageList(), 0, 0 }; 3693yield return new object[] { false, false, autoArrange, true, View.Details, new ImageList(), 0, 0 }; 3696yield return new object[] { false, false, autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3699yield return new object[] { false, false, autoArrange, true, View.List, new ImageList(), 0, 0 }; 3702yield return new object[] { false, false, autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3707yield return new object[] { false, false, false, false, View.Details, new ImageList(), 0, 0 }; 3710yield return new object[] { false, false, false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3713yield return new object[] { false, false, false, false, View.List, new ImageList(), 0, 0 }; 3716yield return new object[] { false, false, false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3719yield return new object[] { false, false, false, false, View.Tile, new ImageList(), 0, 0 }; 3765yield return new object[] { true, checkBoxes, true, false, View.Details, new ImageList(), 0, 0 }; 3768yield return new object[] { true, checkBoxes, true, false, View.LargeIcon, new ImageList(), 0, 0 }; 3771yield return new object[] { true, checkBoxes, true, false, View.List, new ImageList(), 0, 0 }; 3774yield return new object[] { true, checkBoxes, true, false, View.SmallIcon, new ImageList(), 0, 0 }; 3780yield return new object[] { true, checkBoxes, autoArrange, true, View.Details, new ImageList(), 0, 0 }; 3783yield return new object[] { true, checkBoxes, autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3786yield return new object[] { true, checkBoxes, autoArrange, true, View.List, new ImageList(), 0, 0 }; 3789yield return new object[] { true, checkBoxes, autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3794yield return new object[] { true, checkBoxes, false, false, View.Details, new ImageList(), 0, 0 }; 3797yield return new object[] { true, checkBoxes, false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3800yield return new object[] { true, checkBoxes, false, false, View.List, new ImageList(), 0, 0 }; 3803yield return new object[] { true, checkBoxes, false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3808yield return new object[] { true, false, true, false, View.Tile, new ImageList(), 0, 0 }; 3812yield return new object[] { true, false, false, false, View.Tile, new ImageList(), 0, 0 }; 3817yield return new object[] { false, true, true, false, View.Details, new ImageList(), 1, 1 }; 3820yield return new object[] { false, true, true, false, View.LargeIcon, new ImageList(), 3, 1 }; 3823yield return new object[] { false, true, true, false, View.List, new ImageList(), 1, 1 }; 3826yield return new object[] { false, true, true, false, View.SmallIcon, new ImageList(), 3, 1 }; 3832yield return new object[] { false, true, autoArrange, true, View.Details, new ImageList(), 1, 1 }; 3835yield return new object[] { false, true, autoArrange, true, View.LargeIcon, new ImageList(), 1, 1 }; 3838yield return new object[] { false, true, autoArrange, true, View.List, new ImageList(), 1, 1 }; 3841yield return new object[] { false, true, autoArrange, true, View.SmallIcon, new ImageList(), 1, 1 }; 3846yield return new object[] { false, true, false, false, View.Details, new ImageList(), 1, 1 }; 3849yield return new object[] { false, true, false, false, View.LargeIcon, new ImageList(), 1, 1 }; 3852yield return new object[] { false, true, false, false, View.List, new ImageList(), 1, 1 }; 3855yield return new object[] { false, true, false, false, View.SmallIcon, new ImageList(), 1, 1 }; 3860yield return new object[] { false, false, true, false, View.Details, new ImageList(), 0, 0 }; 3863yield return new object[] { false, false, true, false, View.LargeIcon, new ImageList(), 1, 0 }; 3866yield return new object[] { false, false, true, false, View.List, new ImageList(), 0, 0 }; 3869yield return new object[] { false, false, true, false, View.SmallIcon, new ImageList(), 1, 0 }; 3872yield return new object[] { false, false, true, false, View.Tile, new ImageList(), 0, 0 }; 3878yield return new object[] { false, false, autoArrange, true, View.Details, new ImageList(), 0, 0 }; 3881yield return new object[] { false, false, autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3884yield return new object[] { false, false, autoArrange, true, View.List, new ImageList(), 0, 0 }; 3887yield return new object[] { false, false, autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3892yield return new object[] { false, false, false, false, View.Details, new ImageList(), 0, 0 }; 3895yield return new object[] { false, false, false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3898yield return new object[] { false, false, false, false, View.List, new ImageList(), 0, 0 }; 3901yield return new object[] { false, false, false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3904yield return new object[] { false, false, false, false, View.Tile, new ImageList(), 0, 0 }; 3913using ImageList imageList = new(); 3956using ImageList imageList1 = new(); 3957using ImageList imageList2 = new(); 3983using ImageList imageList1 = new(); 3984using ImageList imageList2 = new(); 4292ImageList nonEmptyImageList = new(); 5049using ImageList imagecollection = new();
System\Windows\Forms\TabControlTests.cs (18)
1020using ImageList imageList = new(); 1153yield return new object[] { new ImageList() }; 1177using ImageList oldValue = new(); 1226using ImageList oldValue = new(); 1264using ImageList imageList = new(); 1285using ImageList imageList = new(); 1298using ImageList imageList = new(); 1311using ImageList imageList1 = new(); 1312using ImageList imageList2 = new(); 1333using ImageList imageList1 = new(); 1334using ImageList imageList2 = new(); 1371using ImageList imageList1 = new(); 1374using ImageList imageList2 = new(); 1398using ImageList imageList1 = new(); 1401using ImageList imageList2 = new(); 3577using ImageList imageList = new(); 3590using ImageList imageList = new(); 3603using ImageList imageList = new();
System\Windows\Forms\ToolStripItemTests.cs (15)
3669yield return new object[] { new ImageList() }; 3694using ImageList imageList = new(); 3715using ImageList imageList = new(); 3735yield return new object[] { new ImageList() }; 3762using ImageList imageList = new(); 4102using ImageList imageList = new(); 4147using ImageList imageList = new(); 4499using ImageList imageList = new(); 4642using ImageList imageList = new(); 4784using ImageList imageList = new(); 4862using ImageList imageList = new(); 5001using ImageList imageList = new(); 5138using ImageList imageList = new(); 5283using ImageList imageList = new(); 5375using ImageList imageList = new();
System\Windows\Forms\TreeNodeTests.cs (41)
993using ImageList imageList = new(); 1032using ImageList imageList = new(); 1066using ImageList imageList = new(); 1084using ImageList imageList = new(); 1121using ImageList imageList = new(); 1176using ImageList imageList = new(); 1226using ImageList imageList = new(); 1255using ImageList imageList = new(); 1381using ImageList imageList = new(); 1412using ImageList imageList = new(); 1502using ImageList imageList = new(); 1532using ImageList imageList = new(); 2975using ImageList imageList = new(); 3014using ImageList imageList = new(); 3048using ImageList imageList = new(); 3066using ImageList imageList = new(); 3103using ImageList imageList = new(); 3158using ImageList imageList = new(); 3210using ImageList imageList = new(); 3239using ImageList imageList = new(); 3365using ImageList imageList = new(); 3396using ImageList imageList = new(); 3486using ImageList imageList = new(); 3516using ImageList imageList = new(); 3598using ImageList imageList = new(); 3641using ImageList imageList = new(); 3690using ImageList imageList = new(); 3708using ImageList imageList = new(); 3754using ImageList imageList = new(); 3825using ImageList imageList = new(); 3875using ImageList imageList = new(); 3905using ImageList imageList = new(); 3959using ImageList imageList = new(); 3995using ImageList imageList = new(); 4023using ImageList imageList = new(); 4055using ImageList imageList = new(); 4094using ImageList imageList = new(); 4104using ImageList imageList = new(); 4144using ImageList imageList = new(); 4245using ImageList imageList = new(); 4283using ImageList imageList = new();
System\Windows\Forms\TreeViewTests.cs (47)
2056using ImageList imageList = new(); 2078using ImageList imageList = new(); 2101using ImageList imageList = new(); 2125using ImageList imageList = new(); 2169using ImageList imageList = new(); 2193using ImageList imageList = new(); 2270using ImageList imageList = new(); 2289using ImageList imageList = new(); 2309using ImageList imageList = new(); 2335using ImageList imageList = new(); 2375using ImageList imageList = new(); 2396using ImageList imageList = new(); 2418yield return new object[] { new ImageList() }; 2420using ImageList imageList = new(); 2460using ImageList imageList = new(); 2527using ImageList imageList = new(); 2563using ImageList imageList1 = new(); 2564using ImageList imageList2 = new(); 2583using ImageList imageList = new(); 2595using ImageList imageList = new(); 2608using ImageList imageList = new(); 2623using ImageList imageList = new(); 3416using ImageList imageList = new(); 3438using ImageList imageList = new(); 3461using ImageList imageList = new(); 3485using ImageList imageList = new(); 3529using ImageList imageList = new(); 3553using ImageList imageList = new(); 3620using ImageList imageList = new(); 3639using ImageList imageList = new(); 3659using ImageList imageList = new(); 3685using ImageList imageList = new(); 3725using ImageList imageList = new(); 3746using ImageList imageList = new(); 4489using ImageList imageList = new(); 4522using ImageList imageList = new(); 4540using ImageList imageList1 = new(); 4541using ImageList imageList2 = new(); 4560using ImageList imageList = new(); 4572using ImageList imageList = new(); 4585using ImageList imageList = new(); 4600using ImageList imageList = new(); 6013using ImageList imageList = new(); 6014using ImageList stateImageList = new(); 6083using ImageList imageList = new(); 6084using ImageList stateImageList = new(); 6257using ImageList imageList = new();
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (3)
283using ImageList imageList = new(); 294using ImageList imageList = new(); 328using ImageList imageList = new();
System.Windows.Forms.UI.IntegrationTests (2)
ImageListTests.cs (1)
117ImageList imageList1 = new()
ToolStripTests.cs (1)
16_sharedImageList = new ImageList();
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
34imageList1 = new ImageList(components);
WinFormsControlsTest (9)
CollectionEditors.cs (1)
25ImageList imageList = new();
ListViewTest.cs (2)
126ImageList imageListSmall = new(components); 127ImageList imageListLarge = new(components);
ListViewTest.Designer.cs (3)
36this.imageList1 = new System.Windows.Forms.ImageList(this.components); 41this.imageList2 = new System.Windows.Forms.ImageList(this.components); 44this.LargeImageList = new System.Windows.Forms.ImageList(this.components);
MultipleControls.cs (2)
88ImageList imageListSmall = new(); 89ImageList imageListLarge = new();
TreeViewTest.Designer.cs (1)
37this.imageList1 = new System.Windows.Forms.ImageList(this.components);
766 references to ImageList
Accessibility_Core_App (2)
CommonControl1.cs (2)
17ImageList imageListSmall = new(); 18ImageList imageListLarge = new();
DesignSurface (2)
MainForm.cs (2)
229ImageList im1 = surface.CreateComponent<ImageList>();
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
501ImageList images = new ImageList();
System.Windows.Forms (189)
misc\ImageListUtils.cs (1)
48if (typeof(ImageList).IsAssignableFrom(property.PropertyType))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (12)
24private readonly ImageList.Indexer _imageIndex = new(); 26private ImageList? _imageList; 411ImageIndex = ImageList.Indexer.DefaultIndex; 451[DefaultValue(ImageList.Indexer.DefaultIndex)] 457get => _imageIndex.Index != ImageList.Indexer.DefaultIndex && _imageList is not null && _imageIndex.Index >= _imageList.Images.Count 462ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 464if (value == _imageIndex.Index && value != ImageList.Indexer.DefaultIndex) 469if (value != ImageList.Indexer.DefaultIndex) 498[DefaultValue(ImageList.Indexer.DefaultKey)] 507if (value == _imageIndex.Key && !string.Equals(value, ImageList.Indexer.DefaultKey)) 525/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Drawing.Image"/> 532public ImageList? ImageList
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
367/// Add the given <paramref name="bitmap"/> to the <see cref="ImageList"/> handle. 472/// Releases the unmanaged resources used by the <see cref="ImageList" />
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
19private readonly ImageList _owner; 56internal ImageCollection(ImageList owner)
System\Windows\Forms\Controls\ImageList\ImageList.Indexer.cs (1)
26public virtual ImageList? ImageList { get; set; }
System\Windows\Forms\Controls\ImageList\ImageListConverter.cs (1)
10public ImageListConverter() : base(typeof(ImageList))
System\Windows\Forms\Controls\ImageList\ImageListStreamer.cs (5)
18private readonly ImageList? _imageList; 19private ImageList.NativeImageList? _nativeImageList; 21internal ImageListStreamer(ImageList imageList) => _imageList = imageList; 77_nativeImageList = new ImageList.NativeImageList(new ComManagedStream(memoryStream)); 109internal ImageList.NativeImageList? GetNativeImageList() => _nativeImageList;
System\Windows\Forms\Controls\Labels\Label.cs (10)
410[DefaultValue(ImageList.Indexer.DefaultIndex)] 431return ImageList.Indexer.DefaultIndex; 435ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 437if (ImageIndex == value && value != ImageList.Indexer.DefaultIndex) 442if (value != ImageList.Indexer.DefaultIndex) 459[DefaultValue(ImageList.Indexer.DefaultKey)] 469if (ImageKey == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 505public ImageList? ImageList 507get => Properties.GetValueOrDefault<ImageList>(s_propImageList); 510ImageList? imageList = ImageList;
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (2)
11internal class LabelImageIndexer : ImageList.Indexer 22public override ImageList? ImageList
System\Windows\Forms\Controls\ListView\ColumnHeader.ColumnHeaderImageListIndexer.cs (2)
8internal class ColumnHeaderImageListIndexer : ImageList.Indexer 17public override ImageList? ImageList
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (7)
188[DefaultValue(ImageList.Indexer.DefaultIndex)] 197if (_imageIndexer.Index != ImageList.Indexer.DefaultIndex && ImageList is not null && _imageIndexer.Index >= ImageList.Images.Count) 206ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 208if (_imageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 223public ImageList? ImageList 232[DefaultValue(ImageList.Indexer.DefaultKey)] 245if (value == _imageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\ListView\ListView.cs (17)
112private ImageList? _imageListLarge; 113private ImageList? _imageListSmall; 114private ImageList? _imageListState; 115private ImageList? _imageListGroup; 916/// An <see cref="ImageList"/> that contains the icons to use for <see cref="ListViewGroup"/>. 921/// The <see cref="GroupImageList"/> property allows you to specify an <see cref="ImageList"/> object that 923/// format that the <see cref="ImageList"/> control supports when displaying icons. The <see cref="ListView"/> 924/// control is not limited to .ico files. Once an <see cref="ImageList"/> is assigned to the <see cref="GroupImageList"/> 926/// in the <see cref="ListView"/> control to the index position of the appropriate image in the <see cref="ImageList"/>. 927/// The size of the icons for the <see cref="GroupImageList"/> is specified by the <see cref="ImageList.ImageSize"/> property. 933public ImageList? GroupImageList 1197public ImageList? LargeImageList 1436public ImageList? SmallImageList 1542public ImageList? StateImageList 2956if (sender is ImageList imageList && !imageList.IsDisposed && 5734if (group.TitleImageIndex != ImageList.Indexer.DefaultIndex || group.TitleImageKey != ImageList.Indexer.DefaultKey)
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (4)
267ImageList? imageList = ImageIndexer.ImageList; 274ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 276if (ImageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 305if (ImageIndexer.Key == value && value != ImageList.Indexer.DefaultKey)
System\Windows\Forms\Controls\ListView\ListViewGroupImageIndexer.cs (2)
11internal class ListViewGroupImageIndexer : ImageList.Indexer 28public override ImageList? ImageList
System\Windows\Forms\Controls\ListView\ListViewItem.cs (13)
74: this(text, ImageList.Indexer.DefaultIndex) 86: this(items, ImageList.Indexer.DefaultIndex) 465[DefaultValue(ImageList.Indexer.DefaultIndex)] 483ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 499[DefaultValue(ImageList.Indexer.DefaultKey)] 521public ImageList? ImageList 669_state[s_stateImageMaskSet] = (value == ImageList.Indexer.DefaultIndex ? 0 : 1); 715[DefaultValue(ImageList.Indexer.DefaultIndex)] 735ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 740_state[s_stateImageMaskSet] = (value == ImageList.Indexer.DefaultIndex ? 0 : 1); 1083if (SavedStateImageIndex > ImageList.Indexer.DefaultIndex) 1188int imageIndex = ImageList.Indexer.DefaultIndex; 1244else if (imageIndex != ImageList.Indexer.DefaultIndex)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
56&& _owningItem.ImageIndex != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\ListView\ListViewItemImageIndexer.cs (2)
11internal class ListViewItemImageIndexer : ImageList.Indexer 27public override ImageList? ImageList
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (4)
48ImageList? imageList = null; 65imageList = (ImageList?)listViewImageListProperty.GetValue(listViewInstance); 78values[nImages] = ImageList.Indexer.DefaultIndex; 97return new StandardValuesCollection(new object[] { ImageList.Indexer.DefaultIndex });
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
34private ImageList? _normalButtonImages; 35private ImageList? _largeButtonImages; 2091ImageList.ImageCollection images = _normalButtonImages.Images;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
31private ImageList? _imageList; 452public ImageList? ImageList
System\Windows\Forms\Controls\TabControl\TabPage.cs (3)
22private ImageList.Indexer? _imageIndexer; 214internal ImageList.Indexer ImageIndexer => _imageIndexer ??= new ImageList.Indexer();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
42private ImageList? _imageList; 945/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Image"/> displayed on a label control. 951public ImageList? ImageList 2587/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Image"/> displayed on a label control
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
1064ImageIndex = ImageList.Indexer.DefaultIndex; 1117if ((Owner is not null) && ImageIndexer.Index != ImageList.Indexer.DefaultIndex 1127ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 3354=> Image is not null && ImageIndexer.ActualIndex >= 0 && ImageIndexer.Index != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemImageIndexer.cs (2)
8internal class ToolStripItemImageIndexer : ImageList.Indexer 18public override ImageList? ImageList
System\Windows\Forms\Controls\TreeView\TreeNode.cs (33)
503[DefaultValue(ImageList.Indexer.DefaultIndex)] 510if (ImageIndexer.Index != ImageList.Indexer.NoneIndex 511&& ImageIndexer.Index != ImageList.Indexer.DefaultIndex 522ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.NoneIndex); 525&& value != ImageList.Indexer.NoneIndex 526&& value != ImageList.Indexer.DefaultIndex) 544[DefaultValue(ImageList.Indexer.DefaultKey)] 554if (value == ImageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey)) 884[DefaultValue(ImageList.Indexer.DefaultIndex)] 893if (SelectedImageIndexer.Index != ImageList.Indexer.NoneIndex 894&& SelectedImageIndexer.Index != ImageList.Indexer.DefaultIndex 905ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.NoneIndex); 908&& value != ImageList.Indexer.NoneIndex 909&& value != ImageList.Indexer.DefaultIndex) 927[DefaultValue(ImageList.Indexer.DefaultKey)] 937if (SelectedImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 984[DefaultValue(ImageList.Indexer.DefaultKey)] 994if (StateImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 1009[DefaultValue(ImageList.Indexer.DefaultIndex)] 1020if (StateImageIndexer.Index != ImageList.Indexer.DefaultIndex && 1031ArgumentOutOfRangeException.ThrowIfLessThan(value, ImageList.Indexer.DefaultIndex); 1034if (StateImageIndexer.Index == value && value != ImageList.Indexer.DefaultIndex) 1485int imageIndex = ImageList.Indexer.DefaultIndex; 1488int selectedImageIndex = ImageList.Indexer.DefaultIndex; 1491int stateImageIndex = ImageList.Indexer.DefaultIndex; 1546else if (imageIndex != ImageList.Indexer.DefaultIndex) 1556else if (selectedImageIndex != ImageList.Indexer.DefaultIndex) 1566else if (stateImageIndex != ImageList.Indexer.DefaultIndex) 1845tvis.item.iImage = (ImageIndexer.ActualIndex == ImageList.Indexer.DefaultIndex) ? tv.ImageIndexer.ActualIndex : ImageIndexer.ActualIndex; 1846tvis.item.iSelectedImage = (SelectedImageIndexer.ActualIndex == ImageList.Indexer.DefaultIndex) ? tv.SelectedImageIndexer.ActualIndex : SelectedImageIndexer.ActualIndex; 2174if (StateImageIndexer.ActualIndex != ImageList.Indexer.DefaultIndex) 2198=> actualIndex is ImageList.Indexer.NoneIndex or ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeImageIndexer.cs (2)
10internal partial class TreeNodeImageIndexer : ImageList.Indexer 23public override ImageList? ImageList
System\Windows\Forms\Controls\TreeView\TreeView.cs (24)
49private ImageList.Indexer? _imageIndexer; 50private ImageList.Indexer? _selectedImageIndexer; 98internal ImageList.Indexer ImageIndexer 102_imageIndexer ??= new ImageList.Indexer(); 108internal ImageList.Indexer SelectedImageIndexer 112_selectedImageIndexer ??= new ImageList.Indexer(); 120private ImageList? _imageList; 136private ImageList? _internalStateImageList; 138private ImageList? _stateImageList; 526[DefaultValue(ImageList.Indexer.DefaultIndex)] 540return ImageList.Indexer.DefaultIndex; 556if (value == ImageList.Indexer.DefaultIndex) 581[DefaultValue(ImageList.Indexer.DefaultKey)] 596ImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.DefaultIndex; 614public ImageList? ImageList 690public ImageList? StateImageList 998[DefaultValue(ImageList.Indexer.DefaultIndex)] 1011return ImageList.Indexer.DefaultIndex; 1027if (value == ImageList.Indexer.DefaultIndex) 1052[DefaultValue(ImageList.Indexer.DefaultKey)] 1068SelectedImageIndex = (ImageList is not null) ? 0 : ImageList.Indexer.DefaultIndex; 1977ImageList newImageList = new(); 2375return SelectedImageIndex != ImageList.Indexer.DefaultIndex; 2385return ImageIndex != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (10)
32return ImageList.Indexer.DefaultIndex; 36return ImageList.Indexer.NoneIndex; 56if (index == ImageList.Indexer.DefaultIndex) 60else if (index == ImageList.Indexer.NoneIndex) 89if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) 115ImageList? imageList = (ImageList?)imageListProp.GetValue(instance); 122values[nImages - 2] = ImageList.Indexer.DefaultIndex; 139ImageList.Indexer.DefaultIndex, 140ImageList.Indexer.NoneIndex
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
27private ImageList _selectorImageList;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
98ImageList? imageList = ImageList;
System\Windows\Forms\ImageIndexConverter.cs (7)
55return ImageList.Indexer.DefaultIndex; 72if (destinationType == typeof(string) && value is int index && index == ImageList.Indexer.DefaultIndex) 112if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) 138ImageList? imageList = (ImageList?)imageListProp.GetValue(instance); 148values[nImages] = ImageList.Indexer.DefaultIndex; 168return new StandardValuesCollection(new object[] { ImageList.Indexer.DefaultIndex });
System\Windows\Forms\ImageKeyConverter.cs (3)
118if (typeof(ImageList).IsAssignableFrom(prop.PropertyType)) 144ImageList? imageList = (ImageList?)imageListProp.GetValue(instance);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
46private readonly ImageList _imageList;
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
314public void DrawImage(Graphics g, Rectangle bounds, ImageList imageList, int imageIndex)
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\DesignBindingPicker.cs (14)
1903protected internal static readonly ImageList s_defaultImages = CreateUnscaledDefaultImages(); 1905private static ImageList CreateUnscaledDefaultImages() 1910ImageList defaultImages = new() 1920private static ImageList CreateCopy(ImageList imageList) 1922ImageList copy = new() 1936private static ImageList CreateScaledCopy(ImageList imageList, int dpi) 1940ImageList copy = new() 1960private readonly Dictionary<int, ImageList> _imageListCacheByDPI = []; 1974foreach (var imageList in _imageListCacheByDPI.Values) 2004if (!_imageListCacheByDPI.TryGetValue(dpi, out ImageList? scaledImageList)) 2006ImageList unscaledImageList = _imageListCacheByDPI[ScaleHelper.OneHundredPercentLogicalDpi]; 2258ImageList.ImageCollection? images = _picker?._treeViewCtrl?.ImageList?.Images;
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (2)
42CodeDomSerializer baseSerializer = manager.GetSerializer<CodeDomSerializer>(typeof(ImageList).BaseType)!; 45if (value is ImageList imageList)
System\Windows\Forms\Design\ImageCollectionEditor.cs (2)
90if (editValue is not ImageList.ImageCollection source) 106if (editValue is not ImageList.ImageCollection source)
System\Windows\Forms\Design\ImageIndexEditor.cs (5)
15protected ImageList? _currentImageList; 53(ImageList?)currentProperty.GetValue(_currentInstance) != _currentImageList)) 67if (typeof(ImageList).IsAssignableFrom(property.PropertyType)) 84_currentImageList = (ImageList?)imageListProperty.GetValue(instance); 172if (typeof(ImageList).IsAssignableFrom(property.PropertyType))
System\Windows\Forms\Design\ImageListActionList.cs (2)
24get => (Component as ImageList)!.ColorDepth; 36get => (Component as ImageList)!.ImageSize;
System\Windows\Forms\Design\ImageListDesigner.cs (2)
51internal ImageList ImageList => (ImageList)Component;
System\Windows\Forms\Design\ListViewActionList.cs (2)
48public ImageList? LargeImageList 60public ImageList? SmallImageList
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
47CodeDomSerializer baseSerializer = manager.GetSerializer<CodeDomSerializer>(typeof(ImageList).BaseType)!;
System\Windows\Forms\Design\TreeViewActionList.cs (1)
26public ImageList? ImageList
System.Windows.Forms.Design.Tests (5)
EnsureEditorsTests.cs (1)
63[InlineData(typeof(ImageList.ImageCollection), typeof(ImageCollectionEditor))]
System\Windows\Forms\Design\ImageListActionListTests.cs (1)
14private readonly ImageList _imageList;
System\Windows\Forms\Design\ImageListDesignerTests.cs (1)
14using ImageList imageList = new();
System\Windows\Forms\Design\ListViewActionListTests.cs (2)
47using ImageList largeImageList = new(); 56using ImageList smallImageList = new();
System.Windows.Forms.Tests (523)
SerializableTypesTests.cs (2)
7using static System.Windows.Forms.ImageList; 75using (ImageList imageList = new()
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (1)
1615using ImageList imageCollection = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (2)
143using ImageList imageList = new(); 187using ImageList imageList1 = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
14using ImageList imageCollection = new(); 39using ImageList imageCollection = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (3)
30using ImageList imageCollection = new(); 75using ImageList imageCollection = new(); 112using ImageList imageCollection = new();
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
997using ImageList imageCollection = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (4)
73using ImageList sourceList = new(); 86using ImageList newList = new(); 96using ImageList sourceList = new(); 108using ImageList newList = new();
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (4)
247using ImageList sourceList = new(); 254using ImageList newList = new(); 262using ImageList sourceList = new(); 269using ImageList newList = new();
System\Windows\Forms\ButtonBaseTests.cs (34)
1451Assert.Equal(ImageList.Indexer.DefaultIndex, control.ImageIndex); 1458Assert.Equal(ImageList.Indexer.DefaultKey, control.ImageKey); 1459Assert.Equal(ImageList.Indexer.DefaultIndex, control.ImageIndex); 1467using ImageList imageList = new(); 2110Assert.Equal(ImageList.Indexer.DefaultKey, control.ImageKey); 2116Assert.Equal(ImageList.Indexer.DefaultKey, control.ImageKey); 2126using ImageList imageList = new(); 2153using ImageList imageList = new(); 2242control.ImageKey = ImageList.Indexer.DefaultKey; 2243Assert.Equal(ImageList.Indexer.DefaultKey, control.ImageKey); 2244Assert.Equal(ImageList.Indexer.DefaultIndex, control.ImageIndex); 2261Assert.Equal(ImageList.Indexer.DefaultIndex, control.ImageIndex); 2267Assert.Equal(ImageList.Indexer.DefaultIndex, control.ImageIndex); 2275using ImageList imageList = new(); 2304using ImageList imageList = new(); 2365public void ButtonBase_ImageList_Set_GetReturnsExpected(ImageList value) 2398using ImageList imageList = new(); 2407public void ButtonBase_ImageList_SetWithNonNullOldValue_GetReturnsExpected(ImageList value) 2409using ImageList oldValue = new(); 2435public void ButtonBase_ImageList_SetWithHandle_GetReturnsExpected(ImageList value, int expectedInvalidatedCallCount) 2472public void ButtonBase_ImageList_SetWithNonNullOldValueWithHandle_GetReturnsExpected(ImageList value, int expectedInvalidatedCallCount) 2474using ImageList oldValue = new(); 2509using ImageList imageList = new(); 2518using ImageList imageList1 = new(); 2519using ImageList imageList2 = new(); 2540using ImageList imageList1 = new(); 2541using ImageList imageList2 = new(); 2578using ImageList imageList1 = new(); 2581using ImageList imageList2 = new(); 2606using ImageList imageList1 = new(); 2609using ImageList imageList2 = new(); 4605using ImageList imageList = new(); 4760using ImageList imageList = new(); 4904using ImageList imageList = new();
System\Windows\Forms\ColumnHeaderTests.cs (13)
309Assert.Equal(ImageList.Indexer.DefaultKey, header.ImageKey); 314Assert.Equal(ImageList.Indexer.DefaultKey, header.ImageKey); 345using ImageList imageList = new(); 374using ImageList imageList = new(); 460using ImageList imageList = new(); 530Assert.Equal(ImageList.Indexer.DefaultIndex, header.ImageIndex); 535Assert.Equal(ImageList.Indexer.DefaultIndex, header.ImageIndex); 562using ImageList imageList = new(); 593using ImageList imageList = new(); 682using ImageList imageList = new(); 727using ImageList imageList = new(); 1629using ImageList imageList = new(); 1630using ImageList imageList2 = new();
System\Windows\Forms\ImageList.ImageCollectionTests.cs (148)
17using ImageList list = new(); 20ImageList.ImageCollection collection = list.Images; 27using ImageList list = new(); 30ImageList.ImageCollection collection = list.Images; 37using ImageList list = new(); 38ImageList.ImageCollection collection = list.Images; 46using ImageList list = new() 61ImageList.ImageCollection collection = list.Images; 94using ImageList list = new() 109ImageList.ImageCollection collection = list.Images; 195using ImageList list = new() 199ImageList.ImageCollection collection = list.Images; 221using ImageList list = new(); 222ImageList.ImageCollection collection = list.Images; 232using ImageList list = new(); 234ImageList.ImageCollection collection = list.Images; 260using ImageList list = new() 265ImageList.ImageCollection collection = list.Images; 281using ImageList list = new() 287ImageList.ImageCollection collection = list.Images; 303using ImageList list = new(); 304ImageList.ImageCollection collection = list.Images; 314using ImageList list = new(); 316ImageList.ImageCollection collection = list.Images; 324using ImageList list = new(); 326ImageList.ImageCollection collection = list.Images; 335using ImageList list = new(); 337ImageList.ImageCollection collection = list.Images; 349using ImageList list = new(); 354ImageList.ImageCollection collection = list.Images; 381using ImageList list = new(); 384ImageList.ImageCollection collection = list.Images; 399using ImageList list = new(); 400ImageList.ImageCollection collection = list.Images; 412using ImageList list = new(); 413ImageList.ImageCollection collection = list.Images; 439using ImageList list = new() 443ImageList.ImageCollection collection = list.Images; 483using ImageList list = new() 487ImageList.ImageCollection collection = list.Images; 528using ImageList list = new() 532ImageList.ImageCollection collection = list.Images; 552using ImageList list = new() 556ImageList.ImageCollection collection = list.Images; 597using ImageList list = new() 601ImageList.ImageCollection collection = list.Images; 621using ImageList list = new() 625ImageList.ImageCollection collection = list.Images; 654using ImageList list = new() 658ImageList.ImageCollection collection = list.Images; 698using ImageList list = new() 702ImageList.ImageCollection collection = list.Images; 743using ImageList list = new() 747ImageList.ImageCollection collection = list.Images; 767using ImageList list = new() 771ImageList.ImageCollection collection = list.Images; 791using ImageList list = new(); 792ImageList.ImageCollection collection = list.Images; 803using ImageList list = new(); 804ImageList.ImageCollection collection = list.Images; 816using ImageList list = new() 820ImageList.ImageCollection collection = list.Images; 840using ImageList list = new() 844ImageList.ImageCollection collection = list.Images; 864using ImageList list = new(); 865ImageList.ImageCollection collection = list.Images; 872using ImageList list = new(); 873ImageList.ImageCollection collection = list.Images; 880using ImageList list = new(); 881ImageList.ImageCollection collection = list.Images; 905using ImageList list = new() 909ImageList.ImageCollection collection = list.Images; 922using ImageList list = new() 926ImageList.ImageCollection collection = list.Images; 939using ImageList list = new(); 940ImageList.ImageCollection collection = list.Images; 950using ImageList list = new(); 951ImageList.ImageCollection collection = list.Images; 962using ImageList list = new(); 963ImageList.ImageCollection collection = list.Images; 971using ImageList list = new(); 972ImageList.ImageCollection collection = list.Images; 991using ImageList list = new(); 993ImageList.ImageCollection collection = list.Images; 1013using ImageList list = new(); 1014ImageList.ImageCollection collection = list.Images; 1034using ImageList list = new(); 1036ImageList.ImageCollection collection = list.Images; 1065using ImageList list = new(); 1066ImageList.ImageCollection collection = list.Images; 1082using ImageList list = new(); 1086ImageList.ImageCollection collection = list.Images; 1102using ImageList list = new(); 1103ImageList.ImageCollection collection = list.Images; 1115using ImageList list = new(); 1116ImageList.ImageCollection collection = list.Images; 1134using ImageList list = new(); 1135ImageList.ImageCollection collection = list.Images; 1154using ImageList list = new(); 1159ImageList.ImageCollection collection = list.Images; 1191using ImageList list = new(); 1196ImageList.ImageCollection collection = list.Images; 1238using ImageList list = new(); 1242ImageList.ImageCollection collection = list.Images; 1258using ImageList list = new(); 1259ImageList.ImageCollection collection = list.Images; 1279using ImageList list = new(); 1280ImageList.ImageCollection collection = list.Images; 1295using ImageList list = new(); 1296ImageList.ImageCollection collection = list.Images; 1303using ImageList list = new(); 1310ImageList.ImageCollection collection = list.Images; 1337using ImageList list = new(); 1344ImageList.ImageCollection collection = list.Images; 1381using ImageList list = new(); 1382ImageList.ImageCollection collection = list.Images; 1392using ImageList list = new(); 1394ImageList.ImageCollection collection = list.Images; 1401using ImageList list = new(); 1408ImageList.ImageCollection collection = list.Images; 1441using ImageList list = new(); 1448ImageList.ImageCollection collection = list.Images; 1493using ImageList list = new(); 1500ImageList.ImageCollection collection = list.Images; 1542using ImageList list = new(); 1545ImageList.ImageCollection collection = list.Images; 1563using ImageList list = new(); 1566ImageList.ImageCollection collection = list.Images; 1587using ImageList list = new(); 1588ImageList.ImageCollection collection = list.Images; 1598using ImageList list = new(); 1600ImageList.ImageCollection collection = list.Images; 1607using ImageList list = new(); 1615using ImageList list = new(); 1623using ImageList list = new(); 1633using ImageList list = new() 1654using ImageList list = new() 1676using ImageList list = new(); 1689using ImageList list = new(); 1708using ImageList list = new(); 1719using ImageList list = new(); 1737using ImageList list = new(); 1753using ImageList list = new(); 1768using ImageList list = new(); 1784using ImageList list = new(); 1805using ImageList list = new(); 1820using ImageList list = new(); 1836using ImageList list = new();
System\Windows\Forms\ImageList.NativeImageListTests.cs (1)
4using static System.Windows.Forms.ImageList;
System\Windows\Forms\ImageListStreamerTests.cs (5)
4using static System.Windows.Forms.ImageList; 32using ImageList imageListBf = new(); 34using ImageList imageListMs = new(); 59using ImageList imageListBf = new(); 61using ImageList imageListMs = new();
System\Windows\Forms\ImageListTests.cs (68)
16using ImageList list = new(); 34using ImageList list = new(container); 58using ImageList list = new() 74using ImageList list = new(); 108using ImageList list = new(); 124using ImageList list = new(); 169PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)]; 170using ImageList list = new(); 186PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)]; 187using ImageList list = new(); 208using ImageList list = new() 222using ImageList list = new(); 239using ImageList list = new() 255using ImageList list = new(); 289using ImageList list = new(); 305using ImageList list = new(); 363PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)]; 364using ImageList list = new(); 380PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ImageSize)]; 381using ImageList list = new(); 401using ImageList list = new(); 416using ImageList list = new(); 424using ImageList list = new(); 431using ImageList list = new(); 456using ImageList sourceList = new() 466using ImageList list = new(); 493using ImageList sourceList = new() 505using ImageList list = new() 520using ImageList sourceList = new() 530using ImageList list = new() 545using ImageList sourceList = new() 555using ImageList list = new(); 570using ImageList sourceList = new() 579using ImageList list = new() 594using ImageList sourceList = new() 603using ImageList list = new(); 617using ImageList list = new(); 634using ImageList list = new(); 654using ImageList list = new() 679using ImageList list = new() 695using ImageList list = new(); 729using ImageList list = new(); 745using ImageList list = new(); 779PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)]; 780using ImageList list = new(); 796PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)]; 797using ImageList list = new(); 817using ImageList list = new(); 832using ImageList list = new(); 854using ImageList list = new(); 871using ImageList list = new(); 888using ImageList list = new(); 907using ImageList list = new(); 926using ImageList list = new(); 940using ImageList list = new(); 955using ImageList list = new(); 969using ImageList list = new(); 993using ImageList list = new(); 1007using ImageList list = new(); 1021using ImageList list = new(); 1035using ImageList list = new(); 1049using ImageList list = new();
System\Windows\Forms\LabelTests.cs (7)
613using ImageList imageList = new(); 647using ImageList imageList = new(); 671Assert.Equal(ImageList.Indexer.DefaultKey, label.ImageKey); // Should reset to default value. 675Assert.Equal(ImageList.Indexer.DefaultKey, label.ImageKey); // Should reset to default value. 686using ImageList imageList = new(); 696using ImageList imageList = new(); 707using ImageList imageList = new();
System\Windows\Forms\ListViewGroupTests.cs (4)
215using ImageList groupImageList = new(); 268Assert.Equal(ImageList.Indexer.DefaultIndex, group.TitleImageIndex); 356using ImageList groupImageList = new(); 400Assert.Equal(ImageList.Indexer.DefaultKey, group.TitleImageKey);
System\Windows\Forms\ListViewTests.cs (55)
799foreach (Func<ImageList> imageListFactory in new Func<ImageList>[] { () => new ImageList(), () => null }) 815public void ListView_CheckBoxes_Set_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value) 841public void ListView_CheckBoxes_SetAutoArrange_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value) 905foreach (Func<ImageList> imageListFactory in new Func<ImageList>[] { () => new ImageList(), () => null }) 939foreach (Func<ImageList> imageListFactory in new Func<ImageList>[] { () => new ImageList(), () => null }) 954public void ListView_CheckBoxes_SetWithHandle_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value, int expectedInvalidatedCallCount1, int expectedCreatedCallCount1, int expectedInvalidatedCallCount2, int expectedCreatedCallCount2) 997public void ListView_CheckBoxes_SetAutoArrangeWithHandle_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value, int expectedInvalidatedCallCount1, int expectedCreatedCallCount1, int expectedInvalidatedCallCount2, int expectedCreatedCallCount2) 1095static WeakReference CreateAndDisposeListViewWithImageListReference(ImageList imageList) 1107using ImageList imageList = new(); 1128ImageList imageList = new(); 1557public void ListView_GroupImageList_Set_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 1578public void ListView_GroupImageList_SetWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 1580using ImageList imageList = new(); 1652public void ListView_GroupImageList_SetWithHandle_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 1738public void ListView_GroupImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 1775using ImageList imageList1 = new(); 1776using ImageList imageList2 = new(); 1800using ImageList imageList1 = new(); 1801using ImageList imageList2 = new(); 2502public void ListView_LargeImageList_Set_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 2522public void ListView_LargeImageList_SetWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 2524using ImageList imageList = new(); 2596public void ListView_LargeImageList_SetWithHandle_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount) 2681public void ListView_LargeImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount) 2683using ImageList imageList = new(); 2719using ImageList imageList1 = new(); 2720using ImageList imageList2 = new(); 2743using ImageList imageList1 = new(); 2744using ImageList imageList2 = new(); 3166public void ListView_SmallImageList_Set_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 3186public void ListView_SmallImageList_SetWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 3188using ImageList imageList = new(); 3286public void ListView_SmallImageList_SetWithHandle_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount, int expectedStyleChangedCallCount) 3397public void ListView_SmallImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount, int expectedStyleChangedCallCount) 3399using ImageList imageList = new(); 3435using ImageList imageList1 = new(); 3436using ImageList imageList2 = new(); 3459using ImageList imageList1 = new(); 3460using ImageList imageList2 = new(); 3529public void ListView_StateImageList_Set_GetReturnsExpected(bool useCompatibleStateImageBehavior, bool checkBoxes, bool autoArrange, bool virtualMode, View view, ImageList value) 3551public void ListView_StateImageList_SetWithNonNullOldValue_GetReturnsExpected(bool useCompatibleStateImageBehavior, bool checkBoxes, bool autoArrange, bool virtualMode, View view, ImageList value) 3553using ImageList imageList = new(); 3725public void ListView_StateImageList_SetWithHandle_GetReturnsExpected(bool useCompatibleStateImageBehavior, bool checkBoxes, bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount, int expectedCreatedCallCount) 3911public void ListView_StateImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(bool useCompatibleStateImageBehavior, bool checkBoxes, bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount, int expectedCreatedCallCount) 3913using ImageList imageList = new(); 3956using ImageList imageList1 = new(); 3957using ImageList imageList2 = new(); 3983using ImageList imageList1 = new(); 3984using ImageList imageList2 = new(); 4290private static ImageList CreateImageListNonEmpty() 4292ImageList nonEmptyImageList = new(); 5049using ImageList imagecollection = new();
System\Windows\Forms\PropertyGridTests.cs (2)
3890ImageList normalButtons = propertyGrid.TestAccessor().Dynamic._normalButtonImages; 3896ImageList newNormalButtons = propertyGrid.TestAccessor().Dynamic._normalButtonImages;
System\Windows\Forms\TabControlTests.cs (21)
1020using ImageList imageList = new(); 1158public void TabControl_ImageList_Set_GetReturnsExpected(ImageList value) 1175public void TabControl_ImageList_SetWithNonNullOldValue_GetReturnsExpected(ImageList value) 1177using ImageList oldValue = new(); 1195public void TabControl_ImageList_SetWithHandle_GetReturnsExpected(ImageList value) 1224public void TabControl_ImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(ImageList value) 1226using ImageList oldValue = new(); 1264using ImageList imageList = new(); 1285using ImageList imageList = new(); 1298using ImageList imageList = new(); 1311using ImageList imageList1 = new(); 1312using ImageList imageList2 = new(); 1333using ImageList imageList1 = new(); 1334using ImageList imageList2 = new(); 1371using ImageList imageList1 = new(); 1374using ImageList imageList2 = new(); 1398using ImageList imageList1 = new(); 1401using ImageList imageList2 = new(); 3577using ImageList imageList = new(); 3590using ImageList imageList = new(); 3603using ImageList imageList = new();
System\Windows\Forms\ToolStripItemTests.cs (15)
3674public void ToolStripItem_Image_GetWithOwner_ReturnsNull(ImageList imageList) 3694using ImageList imageList = new(); 3715using ImageList imageList = new(); 3740public void ToolStripItem_Image_GetWithParent_ReturnsNull(ImageList imageList) 3762using ImageList imageList = new(); 4102using ImageList imageList = new(); 4147using ImageList imageList = new(); 4499using ImageList imageList = new(); 4642using ImageList imageList = new(); 4784using ImageList imageList = new(); 4862using ImageList imageList = new(); 5001using ImageList imageList = new(); 5138using ImageList imageList = new(); 5283using ImageList imageList = new(); 5375using ImageList imageList = new();
System\Windows\Forms\TreeNodeTests.cs (64)
993using ImageList imageList = new(); 1017Assert.Equal(ImageList.Indexer.DefaultKey, node.ImageKey); 1022Assert.Equal(ImageList.Indexer.DefaultKey, node.ImageKey); 1028Assert.Equal(ImageList.Indexer.DefaultKey, node.ImageKey); 1032using ImageList imageList = new(); 1035Assert.Equal(ImageList.Indexer.DefaultKey, node.ImageKey); 1042Assert.Equal(ImageList.Indexer.DefaultKey, node.ImageKey); 1066using ImageList imageList = new(); 1084using ImageList imageList = new(); 1121using ImageList imageList = new(); 1176using ImageList imageList = new(); 1226using ImageList imageList = new(); 1255using ImageList imageList = new(); 1349Assert.Equal(ImageList.Indexer.DefaultIndex, node.ImageIndex); 1354Assert.Equal(ImageList.Indexer.DefaultIndex, node.ImageIndex); 1381using ImageList imageList = new(); 1412using ImageList imageList = new(); 1502using ImageList imageList = new(); 1532using ImageList imageList = new(); 2975using ImageList imageList = new(); 2999Assert.Equal(ImageList.Indexer.DefaultKey, node.SelectedImageKey); 3004Assert.Equal(ImageList.Indexer.DefaultKey, node.SelectedImageKey); 3010Assert.Equal(ImageList.Indexer.DefaultKey, node.SelectedImageKey); 3014using ImageList imageList = new(); 3017Assert.Equal(ImageList.Indexer.DefaultKey, node.SelectedImageKey); 3024Assert.Equal(ImageList.Indexer.DefaultKey, node.SelectedImageKey); 3048using ImageList imageList = new(); 3066using ImageList imageList = new(); 3103using ImageList imageList = new(); 3158using ImageList imageList = new(); 3210using ImageList imageList = new(); 3239using ImageList imageList = new(); 3333Assert.Equal(ImageList.Indexer.DefaultIndex, node.SelectedImageIndex); 3338Assert.Equal(ImageList.Indexer.DefaultIndex, node.SelectedImageIndex); 3365using ImageList imageList = new(); 3396using ImageList imageList = new(); 3486using ImageList imageList = new(); 3516using ImageList imageList = new(); 3598using ImageList imageList = new(); 3626Assert.Equal(ImageList.Indexer.DefaultKey, node.StateImageKey); 3631Assert.Equal(ImageList.Indexer.DefaultKey, node.StateImageKey); 3637Assert.Equal(ImageList.Indexer.DefaultKey, node.StateImageKey); 3641using ImageList imageList = new(); 3644Assert.Equal(ImageList.Indexer.DefaultKey, node.StateImageKey); 3651Assert.Equal(ImageList.Indexer.DefaultKey, node.StateImageKey); 3690using ImageList imageList = new(); 3708using ImageList imageList = new(); 3754using ImageList imageList = new(); 3825using ImageList imageList = new(); 3875using ImageList imageList = new(); 3905using ImageList imageList = new(); 3959using ImageList imageList = new(); 3995using ImageList imageList = new(); 4023using ImageList imageList = new(); 4041Assert.Equal(ImageList.Indexer.DefaultIndex, node.StateImageIndex); 4046Assert.Equal(ImageList.Indexer.DefaultIndex, node.StateImageIndex); 4052Assert.Equal(ImageList.Indexer.DefaultIndex, node.StateImageIndex); 4055using ImageList imageList = new(); 4058Assert.Equal(ImageList.Indexer.DefaultIndex, node.StateImageIndex); 4094using ImageList imageList = new(); 4104using ImageList imageList = new(); 4144using ImageList imageList = new(); 4245using ImageList imageList = new(); 4283using ImageList imageList = new();
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (6)
28yield return new object[] { SR.toStringDefault, ImageList.Indexer.DefaultIndex }; 30yield return new object[] { SR.toStringNone, ImageList.Indexer.NoneIndex }; 47yield return new object[] { ImageList.Indexer.DefaultIndex, SR.toStringDefault }; 49yield return new object[] { ImageList.Indexer.NoneIndex, SR.toStringNone }; 71Assert.Equal(ImageList.Indexer.DefaultIndex, result[0]); 72Assert.Equal(ImageList.Indexer.NoneIndex, result[1]);
System\Windows\Forms\TreeViewTests.cs (58)
2056using ImageList imageList = new(); 2078using ImageList imageList = new(); 2101using ImageList imageList = new(); 2125using ImageList imageList = new(); 2169using ImageList imageList = new(); 2193using ImageList imageList = new(); 2270using ImageList imageList = new(); 2289using ImageList imageList = new(); 2309using ImageList imageList = new(); 2335using ImageList imageList = new(); 2375using ImageList imageList = new(); 2396using ImageList imageList = new(); 2420using ImageList imageList = new(); 2427public void ImageList_Set_GetReturnsExpected(ImageList value) 2442public void ImageList_SetWithCheckboxes_GetReturnsExpected(ImageList value) 2458public void ImageList_SetWithNonNullOldValue_GetReturnsExpected(ImageList value) 2460using ImageList imageList = new(); 2476public void ImageList_SetWithStateImageList_GetReturnsExpected(ImageList value) 2492public void ImageList_SetWithHandle_GetReturnsExpected(ImageList value) 2507public void ImageList_SetWithHandleWithCheckBoxes_GetReturnsExpected(ImageList value) 2525public void ImageList_SetWithNonNullOldValueWithHandle_GetReturnsExpected(ImageList value) 2527using ImageList imageList = new(); 2544public void ImageList_SetWithStateImageListWithHandle_GetReturnsExpected(ImageList value) 2563using ImageList imageList1 = new(); 2564using ImageList imageList2 = new(); 2583using ImageList imageList = new(); 2595using ImageList imageList = new(); 2608using ImageList imageList = new(); 2623using ImageList imageList = new(); 3416using ImageList imageList = new(); 3438using ImageList imageList = new(); 3461using ImageList imageList = new(); 3485using ImageList imageList = new(); 3529using ImageList imageList = new(); 3553using ImageList imageList = new(); 3620using ImageList imageList = new(); 3639using ImageList imageList = new(); 3659using ImageList imageList = new(); 3685using ImageList imageList = new(); 3725using ImageList imageList = new(); 3746using ImageList imageList = new(); 4472public void StateImageList_Set_GetReturnsExpected(ImageList value) 4487public void StateImageList_SetWithNonNullOldValue_GetReturnsExpected(ImageList value) 4489using ImageList imageList = new(); 4505public void StateImageList_SetWithHandle_GetReturnsExpected(ImageList value) 4520public void StateImageList_SetWithNonNullOldValueWithHandle_GetReturnsExpected(ImageList value) 4522using ImageList imageList = new(); 4540using ImageList imageList1 = new(); 4541using ImageList imageList2 = new(); 4560using ImageList imageList = new(); 4572using ImageList imageList = new(); 4585using ImageList imageList = new(); 4600using ImageList imageList = new(); 6013using ImageList imageList = new(); 6014using ImageList stateImageList = new(); 6083using ImageList imageList = new(); 6084using ImageList stateImageList = new(); 6257using ImageList imageList = new();
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (3)
283using ImageList imageList = new(); 294using ImageList imageList = new(); 328using ImageList imageList = new();
System.Windows.Forms.UI.IntegrationTests (3)
ImageListTests.cs (1)
117ImageList imageList1 = new()
ToolStripTests.cs (2)
11private readonly ImageList _sharedImageList; 29static void ShowForm(ImageList sharedImageList)
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
69private ImageList imageList1;
WinFormsControlsTest (9)
CollectionEditors.cs (1)
25ImageList imageList = new();
ListViewTest.cs (2)
126ImageList imageListSmall = new(components); 127ImageList imageListLarge = new(components);
ListViewTest.Designer.cs (3)
167private System.Windows.Forms.ImageList imageList1; 168private System.Windows.Forms.ImageList imageList2; 169private System.Windows.Forms.ImageList LargeImageList;
MultipleControls.cs (2)
88ImageList imageListSmall = new(); 89ImageList imageListLarge = new();
TreeViewTest.Designer.cs (1)
74private System.Windows.Forms.ImageList imageList1;