238 references to SmallIcon
Accessibility_Core_App (1)
CommonControl1.cs (1)
30
listView1.View = View.
SmallIcon
;
System.Windows.Forms (20)
System\Windows\Forms\Controls\ListView\ListView.cs (14)
520
(value && (View == View.
SmallIcon
|| View == View.LargeIcon) && IsHandleCreated))
849
Debug.Assert(!_listViewState[LISTVIEWSTATE_flipViewToLargeIconAndSmallIcon] || View == View.
SmallIcon
, "we need this bit only in SmallIcon view");
857
Debug.Assert(!value || View == View.
SmallIcon
, "we need this bit only in SmallIcon view");
1457
if (View == View.
SmallIcon
)
1460
View = View.
SmallIcon
;
1509
if (View is View.LargeIcon or View.
SmallIcon
)
1712
if (_viewStyle is View.LargeIcon or View.
SmallIcon
or View.Tile)
1727
if (_viewStyle is View.LargeIcon or View.
SmallIcon
or View.Tile)
2233
if (_viewStyle != View.
SmallIcon
)
3211
if (View is not View.
SmallIcon
and not View.LargeIcon)
3993
if (IsHandleCreated && Items.Count == 0 && View == View.
SmallIcon
&& Application.ComCtlSupportsVisualStyles)
4242
View = View.
SmallIcon
;
4993
if (View is View.LargeIcon or View.
SmallIcon
)
5582
if (!VirtualMode && IsHandleCreated && AutoArrange && (View == View.LargeIcon || View == View.
SmallIcon
))
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (2)
263
if (_owner.View == View.
SmallIcon
)
273
_owner.View = View.
SmallIcon
;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
262
View.
SmallIcon
=> new ListViewItemSmallIconAccessibleObject(this),
532
case View.
SmallIcon
:
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
32
case View.
SmallIcon
:
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemSmallIconAccessibleObject.cs (1)
14
protected override View View => View.
SmallIcon
;
System.Windows.Forms.Tests (217)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (12)
1142
[InlineData(View.
SmallIcon
)]
1166
[InlineData(View.
SmallIcon
)]
1444
[InlineData(View.
SmallIcon
)]
1470
[InlineData(View.
SmallIcon
)]
1507
[InlineData(View.
SmallIcon
)]
1540
[InlineData(View.
SmallIcon
)]
1559
[InlineData(View.
SmallIcon
)]
1587
[InlineData(View.
SmallIcon
)]
1611
[InlineData(View.
SmallIcon
)]
1633
[InlineData(View.
SmallIcon
)]
1657
[InlineData(View.
SmallIcon
)]
1691
[InlineData(View.
SmallIcon
)]
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (14)
848
[InlineData(View.
SmallIcon
)]
872
[InlineData(View.
SmallIcon
)]
912
[InlineData(View.
SmallIcon
)]
941
[InlineData(View.
SmallIcon
)]
961
[InlineData(View.
SmallIcon
)]
987
[InlineData(View.
SmallIcon
)]
1012
[InlineData(View.
SmallIcon
)]
1031
[InlineData(View.
SmallIcon
)]
1055
[InlineData(View.
SmallIcon
)]
1082
[InlineData(View.
SmallIcon
)]
1103
[InlineData(View.
SmallIcon
)]
1129
[InlineData(View.
SmallIcon
)]
1186
[InlineData(View.
SmallIcon
)]
1207
[InlineData(View.
SmallIcon
)]
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (30)
286
foreach (View view in new View[] { View.List, View.LargeIcon, View.
SmallIcon
})
955
[InlineData(View.
SmallIcon
)]
973
[InlineData(View.
SmallIcon
)]
1008
[InlineData(View.
SmallIcon
)]
1276
[InlineData(View.
SmallIcon
)]
1333
[InlineData(View.
SmallIcon
)]
1391
[InlineData(View.
SmallIcon
)]
1532
[InlineData(View.
SmallIcon
)]
1562
[InlineData(View.
SmallIcon
)]
1577
[InlineData(View.
SmallIcon
)]
1636
[InlineData(View.
SmallIcon
)]
1654
[InlineData(View.
SmallIcon
)]
1672
case View.
SmallIcon
:
1720
case View.
SmallIcon
:
1733
[InlineData(View.Details, View.
SmallIcon
)]
1737
[InlineData(View.LargeIcon, View.
SmallIcon
)]
1741
[InlineData(View.List, View.
SmallIcon
)]
1743
[InlineData(View.
SmallIcon
, View.Details)]
1744
[InlineData(View.
SmallIcon
, View.LargeIcon)]
1745
[InlineData(View.
SmallIcon
, View.List)]
1746
[InlineData(View.
SmallIcon
, View.Tile)]
1750
[InlineData(View.Tile, View.
SmallIcon
)]
1766
[InlineData(View.Details, View.
SmallIcon
)]
1770
[InlineData(View.LargeIcon, View.
SmallIcon
)]
1774
[InlineData(View.List, View.
SmallIcon
)]
1776
[InlineData(View.
SmallIcon
, View.Details)]
1777
[InlineData(View.
SmallIcon
, View.LargeIcon)]
1778
[InlineData(View.
SmallIcon
, View.List)]
1779
[InlineData(View.
SmallIcon
, View.Tile)]
1783
[InlineData(View.Tile, View.
SmallIcon
)]
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (2)
195
[InlineData(View.
SmallIcon
)]
213
[InlineData(View.
SmallIcon
)]
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (1)
136
View.
SmallIcon
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (5)
99
[InlineData(View.
SmallIcon
)]
114
foreach (View view in new[] { View.List, View.LargeIcon, View.
SmallIcon
, View.Tile })
713
[InlineData(View.
SmallIcon
, true)]
714
[InlineData(View.
SmallIcon
, false)]
1029
[InlineData(View.
SmallIcon
)]
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (9)
410
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
429
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
450
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
470
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
491
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
513
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
534
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
554
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
574
using var listView = GetListView(virtualMode: false, view: View.
SmallIcon
, size: new Size(220, 150));
System\Windows\Forms\ListViewTests.cs (144)
806
yield return new object[] { useCompatibleStateImageBehavior, View.
SmallIcon
, alignment, imageListFactory(), value };
910
yield return new object[] { true, View.
SmallIcon
, alignment, imageListFactory(), true, 1, 0, 2, 0 };
914
yield return new object[] { true, View.
SmallIcon
, alignment, imageListFactory(), false, 0, 0, 1, 0 };
922
yield return new object[] { false, View.
SmallIcon
, alignment, null, true, 2, 1, 3, 1 };
926
yield return new object[] { false, View.
SmallIcon
, alignment, null, false, 0, 0, 2, 1 };
931
yield return new object[] { false, View.
SmallIcon
, alignment, new ImageList(), true, 2, 1, 4, 2 };
935
yield return new object[] { false, View.
SmallIcon
, alignment, new ImageList(), false, 0, 0, 2, 1 };
944
yield return new object[] { false, View.
SmallIcon
, ListViewAlignment.Left, imageListFactory(), true, 2, 1, 4, 2 };
948
yield return new object[] { false, View.
SmallIcon
, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 2, 1 };
1541
foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.
SmallIcon
})
1610
yield return new object[] { true, false, View.
SmallIcon
, null };
1611
yield return new object[] { true, false, View.
SmallIcon
, new ImageList() };
1612
yield return new object[] { true, false, View.
SmallIcon
, CreateImageListNonEmpty() };
1628
yield return new object[] { autoArrange, true, View.
SmallIcon
, null };
1629
yield return new object[] { autoArrange, true, View.
SmallIcon
, new ImageList() };
1630
yield return new object[] { autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty() };
1642
yield return new object[] { false, false, View.
SmallIcon
, null };
1643
yield return new object[] { false, false, View.
SmallIcon
, new ImageList() };
1644
yield return new object[] { false, false, View.
SmallIcon
, CreateImageListNonEmpty() };
1696
yield return new object[] { true, false, View.
SmallIcon
, null };
1697
yield return new object[] { true, false, View.
SmallIcon
, new ImageList() };
1698
yield return new object[] { true, false, View.
SmallIcon
, CreateImageListNonEmpty() };
1714
yield return new object[] { autoArrange, true, View.
SmallIcon
, null };
1715
yield return new object[] { autoArrange, true, View.
SmallIcon
, new ImageList() };
1716
yield return new object[] { autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty() };
1728
yield return new object[] { false, false, View.
SmallIcon
, null };
1729
yield return new object[] { false, false, View.
SmallIcon
, new ImageList() };
1730
yield return new object[] { false, false, View.
SmallIcon
, CreateImageListNonEmpty() };
2486
foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.
SmallIcon
})
2554
yield return new object[] { true, false, View.
SmallIcon
, null, 0 };
2555
yield return new object[] { true, false, View.
SmallIcon
, new ImageList(), 1 };
2556
yield return new object[] { true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 1 };
2572
yield return new object[] { autoArrange, true, View.
SmallIcon
, null, 0 };
2573
yield return new object[] { autoArrange, true, View.
SmallIcon
, new ImageList(), 0 };
2574
yield return new object[] { autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 0 };
2586
yield return new object[] { false, false, View.
SmallIcon
, null, 0 };
2587
yield return new object[] { false, false, View.
SmallIcon
, new ImageList(), 0 };
2588
yield return new object[] { false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0 };
2639
yield return new object[] { true, false, View.
SmallIcon
, null, 1 };
2640
yield return new object[] { true, false, View.
SmallIcon
, new ImageList(), 1 };
2641
yield return new object[] { true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 1 };
2657
yield return new object[] { autoArrange, true, View.
SmallIcon
, null, 0 };
2658
yield return new object[] { autoArrange, true, View.
SmallIcon
, new ImageList(), 0 };
2659
yield return new object[] { autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 0 };
2671
yield return new object[] { false, false, View.
SmallIcon
, null, 0 };
2672
yield return new object[] { false, false, View.
SmallIcon
, new ImageList(), 0 };
2673
yield return new object[] { false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0 };
3150
foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.
SmallIcon
})
3250
yield return new object[] { true, false, View.
SmallIcon
, null, 0, 0 };
3251
yield return new object[] { true, false, View.
SmallIcon
, new ImageList(), 2, 0 };
3252
yield return new object[] { true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 2, 0 };
3256
yield return new object[] { autoArrange, true, View.
SmallIcon
, null, 0, 0 };
3257
yield return new object[] { autoArrange, true, View.
SmallIcon
, new ImageList(), 0, 0 };
3258
yield return new object[] { autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3261
yield return new object[] { false, false, View.
SmallIcon
, null, 0, 0 };
3262
yield return new object[] { false, false, View.
SmallIcon
, new ImageList(), 0, 0 };
3263
yield return new object[] { false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3267
yield return new object[] { true, false, View.
SmallIcon
, null, 0, 0 };
3268
yield return new object[] { true, false, View.
SmallIcon
, new ImageList(), 4, 2 };
3269
yield return new object[] { true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 4, 2 };
3273
yield return new object[] { autoArrange, true, View.
SmallIcon
, null, 0, 0 };
3274
yield return new object[] { autoArrange, true, View.
SmallIcon
, new ImageList(), 2, 2 };
3275
yield return new object[] { autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 2, 2 };
3278
yield return new object[] { false, false, View.
SmallIcon
, null, 0, 0 };
3279
yield return new object[] { false, false, View.
SmallIcon
, new ImageList(), 2, 2 };
3280
yield return new object[] { false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 2, 2 };
3361
yield return new object[] { true, false, View.
SmallIcon
, null, 2, 0 };
3362
yield return new object[] { true, false, View.
SmallIcon
, new ImageList(), 2, 0 };
3363
yield return new object[] { true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 2, 0 };
3367
yield return new object[] { autoArrange, true, View.
SmallIcon
, null, 0, 0 };
3368
yield return new object[] { autoArrange, true, View.
SmallIcon
, new ImageList(), 0, 0 };
3369
yield return new object[] { autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3372
yield return new object[] { false, false, View.
SmallIcon
, null, 0, 0 };
3373
yield return new object[] { false, false, View.
SmallIcon
, new ImageList(), 0, 0 };
3374
yield return new object[] { false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3378
yield return new object[] { true, false, View.
SmallIcon
, null, 4, 2 };
3379
yield return new object[] { true, false, View.
SmallIcon
, new ImageList(), 4, 2 };
3380
yield return new object[] { true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 4, 2 };
3384
yield return new object[] { autoArrange, true, View.
SmallIcon
, null, 2, 2 };
3385
yield return new object[] { autoArrange, true, View.
SmallIcon
, new ImageList(), 2, 2 };
3386
yield return new object[] { autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 2, 2 };
3389
yield return new object[] { false, false, View.
SmallIcon
, null, 2, 2 };
3390
yield return new object[] { false, false, View.
SmallIcon
, new ImageList(), 2, 2 };
3391
yield return new object[] { false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 2, 2 };
3507
foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.
SmallIcon
})
3588
yield return new object[] { true, checkBoxes, true, false, View.
SmallIcon
, null, 0, 0 };
3589
yield return new object[] { true, checkBoxes, true, false, View.
SmallIcon
, new ImageList(), 0, 0 };
3590
yield return new object[] { true, checkBoxes, true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3603
yield return new object[] { true, checkBoxes, autoArrange, true, View.
SmallIcon
, null, 0, 0 };
3604
yield return new object[] { true, checkBoxes, autoArrange, true, View.
SmallIcon
, new ImageList(), 0, 0 };
3605
yield return new object[] { true, checkBoxes, autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3617
yield return new object[] { true, checkBoxes, false, false, View.
SmallIcon
, null, 0, 0 };
3618
yield return new object[] { true, checkBoxes, false, false, View.
SmallIcon
, new ImageList(), 0, 0 };
3619
yield return new object[] { true, checkBoxes, false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3640
yield return new object[] { false, true, true, false, View.
SmallIcon
, null, 0, 0 };
3641
yield return new object[] { false, true, true, false, View.
SmallIcon
, new ImageList(), 3, 1 };
3642
yield return new object[] { false, true, true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 3, 1 };
3655
yield return new object[] { false, true, autoArrange, true, View.
SmallIcon
, null, 0, 0 };
3656
yield return new object[] { false, true, autoArrange, true, View.
SmallIcon
, new ImageList(), 1, 1 };
3657
yield return new object[] { false, true, autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 1, 1 };
3669
yield return new object[] { false, true, false, false, View.
SmallIcon
, null, 0, 0 };
3670
yield return new object[] { false, true, false, false, View.
SmallIcon
, new ImageList(), 1, 1 };
3671
yield return new object[] { false, true, false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 1, 1 };
3683
yield return new object[] { false, false, true, false, View.
SmallIcon
, null, 0, 0 };
3684
yield return new object[] { false, false, true, false, View.
SmallIcon
, new ImageList(), 1, 0 };
3685
yield return new object[] { false, false, true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 1, 0 };
3701
yield return new object[] { false, false, autoArrange, true, View.
SmallIcon
, null, 0, 0 };
3702
yield return new object[] { false, false, autoArrange, true, View.
SmallIcon
, new ImageList(), 0, 0 };
3703
yield return new object[] { false, false, autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3715
yield return new object[] { false, false, false, false, View.
SmallIcon
, null, 0, 0 };
3716
yield return new object[] { false, false, false, false, View.
SmallIcon
, new ImageList(), 0, 0 };
3717
yield return new object[] { false, false, false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3773
yield return new object[] { true, checkBoxes, true, false, View.
SmallIcon
, null, 0, 0 };
3774
yield return new object[] { true, checkBoxes, true, false, View.
SmallIcon
, new ImageList(), 0, 0 };
3775
yield return new object[] { true, checkBoxes, true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3788
yield return new object[] { true, checkBoxes, autoArrange, true, View.
SmallIcon
, null, 0, 0 };
3789
yield return new object[] { true, checkBoxes, autoArrange, true, View.
SmallIcon
, new ImageList(), 0, 0 };
3790
yield return new object[] { true, checkBoxes, autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3802
yield return new object[] { true, checkBoxes, false, false, View.
SmallIcon
, null, 0, 0 };
3803
yield return new object[] { true, checkBoxes, false, false, View.
SmallIcon
, new ImageList(), 0, 0 };
3804
yield return new object[] { true, checkBoxes, false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3825
yield return new object[] { false, true, true, false, View.
SmallIcon
, null, 3, 1 };
3826
yield return new object[] { false, true, true, false, View.
SmallIcon
, new ImageList(), 3, 1 };
3827
yield return new object[] { false, true, true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 3, 1 };
3840
yield return new object[] { false, true, autoArrange, true, View.
SmallIcon
, null, 1, 1 };
3841
yield return new object[] { false, true, autoArrange, true, View.
SmallIcon
, new ImageList(), 1, 1 };
3842
yield return new object[] { false, true, autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 1, 1 };
3854
yield return new object[] { false, true, false, false, View.
SmallIcon
, null, 1, 1 };
3855
yield return new object[] { false, true, false, false, View.
SmallIcon
, new ImageList(), 1, 1 };
3856
yield return new object[] { false, true, false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 1, 1 };
3868
yield return new object[] { false, false, true, false, View.
SmallIcon
, null, 1, 0 };
3869
yield return new object[] { false, false, true, false, View.
SmallIcon
, new ImageList(), 1, 0 };
3870
yield return new object[] { false, false, true, false, View.
SmallIcon
, CreateImageListNonEmpty(), 1, 0 };
3886
yield return new object[] { false, false, autoArrange, true, View.
SmallIcon
, null, 0, 0 };
3887
yield return new object[] { false, false, autoArrange, true, View.
SmallIcon
, new ImageList(), 0, 0 };
3888
yield return new object[] { false, false, autoArrange, true, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
3900
yield return new object[] { false, false, false, false, View.
SmallIcon
, null, 0, 0 };
3901
yield return new object[] { false, false, false, false, View.
SmallIcon
, new ImageList(), 0, 0 };
3902
yield return new object[] { false, false, false, false, View.
SmallIcon
, CreateImageListNonEmpty(), 0, 0 };
5035
listView.View = View.
SmallIcon
;
5091
listView.View = View.
SmallIcon
;
5137
[InlineData(View.
SmallIcon
)]
5164
[InlineData(View.
SmallIcon
)]
5189
[InlineData(View.
SmallIcon
)]