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