238 references to SmallIcon
Accessibility_Core_App (1)
CommonControl1.cs (1)
30listView1.View = View.SmallIcon;
System.Windows.Forms (20)
System\Windows\Forms\Controls\ListView\ListView.cs (14)
520(value && (View == View.SmallIcon || View == View.LargeIcon) && IsHandleCreated)) 849Debug.Assert(!_listViewState[LISTVIEWSTATE_flipViewToLargeIconAndSmallIcon] || View == View.SmallIcon, "we need this bit only in SmallIcon view"); 857Debug.Assert(!value || View == View.SmallIcon, "we need this bit only in SmallIcon view"); 1457if (View == View.SmallIcon) 1460View = View.SmallIcon; 1509if (View is View.LargeIcon or View.SmallIcon) 1712if (_viewStyle is View.LargeIcon or View.SmallIcon or View.Tile) 1727if (_viewStyle is View.LargeIcon or View.SmallIcon or View.Tile) 2233if (_viewStyle != View.SmallIcon) 3211if (View is not View.SmallIcon and not View.LargeIcon) 3993if (IsHandleCreated && Items.Count == 0 && View == View.SmallIcon && Application.ComCtlSupportsVisualStyles) 4242View = View.SmallIcon; 4993if (View is View.LargeIcon or View.SmallIcon) 5582if (!VirtualMode && IsHandleCreated && AutoArrange && (View == View.LargeIcon || View == View.SmallIcon))
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (2)
263if (_owner.View == View.SmallIcon) 273_owner.View = View.SmallIcon;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
262View.SmallIcon => new ListViewItemSmallIconAccessibleObject(this), 532case View.SmallIcon:
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
32case View.SmallIcon:
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemSmallIconAccessibleObject.cs (1)
14protected 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)
286foreach (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)] 1672case View.SmallIcon: 1720case 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)
136View.SmallIcon
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (5)
99[InlineData(View.SmallIcon)] 114foreach (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)
410using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150)); 429using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150)); 450using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150)); 470using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150)); 491using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150)); 513using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150)); 534using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150)); 554using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150)); 574using var listView = GetListView(virtualMode: false, view: View.SmallIcon, size: new Size(220, 150));
System\Windows\Forms\ListViewTests.cs (144)
806yield return new object[] { useCompatibleStateImageBehavior, View.SmallIcon, alignment, imageListFactory(), value }; 910yield return new object[] { true, View.SmallIcon, alignment, imageListFactory(), true, 1, 0, 2, 0 }; 914yield return new object[] { true, View.SmallIcon, alignment, imageListFactory(), false, 0, 0, 1, 0 }; 922yield return new object[] { false, View.SmallIcon, alignment, null, true, 2, 1, 3, 1 }; 926yield return new object[] { false, View.SmallIcon, alignment, null, false, 0, 0, 2, 1 }; 931yield return new object[] { false, View.SmallIcon, alignment, new ImageList(), true, 2, 1, 4, 2 }; 935yield return new object[] { false, View.SmallIcon, alignment, new ImageList(), false, 0, 0, 2, 1 }; 944yield return new object[] { false, View.SmallIcon, ListViewAlignment.Left, imageListFactory(), true, 2, 1, 4, 2 }; 948yield return new object[] { false, View.SmallIcon, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 2, 1 }; 1541foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.SmallIcon }) 1610yield return new object[] { true, false, View.SmallIcon, null }; 1611yield return new object[] { true, false, View.SmallIcon, new ImageList() }; 1612yield return new object[] { true, false, View.SmallIcon, CreateImageListNonEmpty() }; 1628yield return new object[] { autoArrange, true, View.SmallIcon, null }; 1629yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList() }; 1630yield return new object[] { autoArrange, true, View.SmallIcon, CreateImageListNonEmpty() }; 1642yield return new object[] { false, false, View.SmallIcon, null }; 1643yield return new object[] { false, false, View.SmallIcon, new ImageList() }; 1644yield return new object[] { false, false, View.SmallIcon, CreateImageListNonEmpty() }; 1696yield return new object[] { true, false, View.SmallIcon, null }; 1697yield return new object[] { true, false, View.SmallIcon, new ImageList() }; 1698yield return new object[] { true, false, View.SmallIcon, CreateImageListNonEmpty() }; 1714yield return new object[] { autoArrange, true, View.SmallIcon, null }; 1715yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList() }; 1716yield return new object[] { autoArrange, true, View.SmallIcon, CreateImageListNonEmpty() }; 1728yield return new object[] { false, false, View.SmallIcon, null }; 1729yield return new object[] { false, false, View.SmallIcon, new ImageList() }; 1730yield return new object[] { false, false, View.SmallIcon, CreateImageListNonEmpty() }; 2486foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.SmallIcon }) 2554yield return new object[] { true, false, View.SmallIcon, null, 0 }; 2555yield return new object[] { true, false, View.SmallIcon, new ImageList(), 1 }; 2556yield return new object[] { true, false, View.SmallIcon, CreateImageListNonEmpty(), 1 }; 2572yield return new object[] { autoArrange, true, View.SmallIcon, null, 0 }; 2573yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 0 }; 2574yield return new object[] { autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 0 }; 2586yield return new object[] { false, false, View.SmallIcon, null, 0 }; 2587yield return new object[] { false, false, View.SmallIcon, new ImageList(), 0 }; 2588yield return new object[] { false, false, View.SmallIcon, CreateImageListNonEmpty(), 0 }; 2639yield return new object[] { true, false, View.SmallIcon, null, 1 }; 2640yield return new object[] { true, false, View.SmallIcon, new ImageList(), 1 }; 2641yield return new object[] { true, false, View.SmallIcon, CreateImageListNonEmpty(), 1 }; 2657yield return new object[] { autoArrange, true, View.SmallIcon, null, 0 }; 2658yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 0 }; 2659yield return new object[] { autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 0 }; 2671yield return new object[] { false, false, View.SmallIcon, null, 0 }; 2672yield return new object[] { false, false, View.SmallIcon, new ImageList(), 0 }; 2673yield return new object[] { false, false, View.SmallIcon, CreateImageListNonEmpty(), 0 }; 3150foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.SmallIcon }) 3250yield return new object[] { true, false, View.SmallIcon, null, 0, 0 }; 3251yield return new object[] { true, false, View.SmallIcon, new ImageList(), 2, 0 }; 3252yield return new object[] { true, false, View.SmallIcon, CreateImageListNonEmpty(), 2, 0 }; 3256yield return new object[] { autoArrange, true, View.SmallIcon, null, 0, 0 }; 3257yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3258yield return new object[] { autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3261yield return new object[] { false, false, View.SmallIcon, null, 0, 0 }; 3262yield return new object[] { false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3263yield return new object[] { false, false, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3267yield return new object[] { true, false, View.SmallIcon, null, 0, 0 }; 3268yield return new object[] { true, false, View.SmallIcon, new ImageList(), 4, 2 }; 3269yield return new object[] { true, false, View.SmallIcon, CreateImageListNonEmpty(), 4, 2 }; 3273yield return new object[] { autoArrange, true, View.SmallIcon, null, 0, 0 }; 3274yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 2, 2 }; 3275yield return new object[] { autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 2, 2 }; 3278yield return new object[] { false, false, View.SmallIcon, null, 0, 0 }; 3279yield return new object[] { false, false, View.SmallIcon, new ImageList(), 2, 2 }; 3280yield return new object[] { false, false, View.SmallIcon, CreateImageListNonEmpty(), 2, 2 }; 3361yield return new object[] { true, false, View.SmallIcon, null, 2, 0 }; 3362yield return new object[] { true, false, View.SmallIcon, new ImageList(), 2, 0 }; 3363yield return new object[] { true, false, View.SmallIcon, CreateImageListNonEmpty(), 2, 0 }; 3367yield return new object[] { autoArrange, true, View.SmallIcon, null, 0, 0 }; 3368yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3369yield return new object[] { autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3372yield return new object[] { false, false, View.SmallIcon, null, 0, 0 }; 3373yield return new object[] { false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3374yield return new object[] { false, false, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3378yield return new object[] { true, false, View.SmallIcon, null, 4, 2 }; 3379yield return new object[] { true, false, View.SmallIcon, new ImageList(), 4, 2 }; 3380yield return new object[] { true, false, View.SmallIcon, CreateImageListNonEmpty(), 4, 2 }; 3384yield return new object[] { autoArrange, true, View.SmallIcon, null, 2, 2 }; 3385yield return new object[] { autoArrange, true, View.SmallIcon, new ImageList(), 2, 2 }; 3386yield return new object[] { autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 2, 2 }; 3389yield return new object[] { false, false, View.SmallIcon, null, 2, 2 }; 3390yield return new object[] { false, false, View.SmallIcon, new ImageList(), 2, 2 }; 3391yield return new object[] { false, false, View.SmallIcon, CreateImageListNonEmpty(), 2, 2 }; 3507foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.SmallIcon }) 3588yield return new object[] { true, checkBoxes, true, false, View.SmallIcon, null, 0, 0 }; 3589yield return new object[] { true, checkBoxes, true, false, View.SmallIcon, new ImageList(), 0, 0 }; 3590yield return new object[] { true, checkBoxes, true, false, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3603yield return new object[] { true, checkBoxes, autoArrange, true, View.SmallIcon, null, 0, 0 }; 3604yield return new object[] { true, checkBoxes, autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3605yield return new object[] { true, checkBoxes, autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3617yield return new object[] { true, checkBoxes, false, false, View.SmallIcon, null, 0, 0 }; 3618yield return new object[] { true, checkBoxes, false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3619yield return new object[] { true, checkBoxes, false, false, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3640yield return new object[] { false, true, true, false, View.SmallIcon, null, 0, 0 }; 3641yield return new object[] { false, true, true, false, View.SmallIcon, new ImageList(), 3, 1 }; 3642yield return new object[] { false, true, true, false, View.SmallIcon, CreateImageListNonEmpty(), 3, 1 }; 3655yield return new object[] { false, true, autoArrange, true, View.SmallIcon, null, 0, 0 }; 3656yield return new object[] { false, true, autoArrange, true, View.SmallIcon, new ImageList(), 1, 1 }; 3657yield return new object[] { false, true, autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 1, 1 }; 3669yield return new object[] { false, true, false, false, View.SmallIcon, null, 0, 0 }; 3670yield return new object[] { false, true, false, false, View.SmallIcon, new ImageList(), 1, 1 }; 3671yield return new object[] { false, true, false, false, View.SmallIcon, CreateImageListNonEmpty(), 1, 1 }; 3683yield return new object[] { false, false, true, false, View.SmallIcon, null, 0, 0 }; 3684yield return new object[] { false, false, true, false, View.SmallIcon, new ImageList(), 1, 0 }; 3685yield return new object[] { false, false, true, false, View.SmallIcon, CreateImageListNonEmpty(), 1, 0 }; 3701yield return new object[] { false, false, autoArrange, true, View.SmallIcon, null, 0, 0 }; 3702yield return new object[] { false, false, autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3703yield return new object[] { false, false, autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3715yield return new object[] { false, false, false, false, View.SmallIcon, null, 0, 0 }; 3716yield return new object[] { false, false, false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3717yield return new object[] { false, false, false, false, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3773yield return new object[] { true, checkBoxes, true, false, View.SmallIcon, null, 0, 0 }; 3774yield return new object[] { true, checkBoxes, true, false, View.SmallIcon, new ImageList(), 0, 0 }; 3775yield return new object[] { true, checkBoxes, true, false, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3788yield return new object[] { true, checkBoxes, autoArrange, true, View.SmallIcon, null, 0, 0 }; 3789yield return new object[] { true, checkBoxes, autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3790yield return new object[] { true, checkBoxes, autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3802yield return new object[] { true, checkBoxes, false, false, View.SmallIcon, null, 0, 0 }; 3803yield return new object[] { true, checkBoxes, false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3804yield return new object[] { true, checkBoxes, false, false, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3825yield return new object[] { false, true, true, false, View.SmallIcon, null, 3, 1 }; 3826yield return new object[] { false, true, true, false, View.SmallIcon, new ImageList(), 3, 1 }; 3827yield return new object[] { false, true, true, false, View.SmallIcon, CreateImageListNonEmpty(), 3, 1 }; 3840yield return new object[] { false, true, autoArrange, true, View.SmallIcon, null, 1, 1 }; 3841yield return new object[] { false, true, autoArrange, true, View.SmallIcon, new ImageList(), 1, 1 }; 3842yield return new object[] { false, true, autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 1, 1 }; 3854yield return new object[] { false, true, false, false, View.SmallIcon, null, 1, 1 }; 3855yield return new object[] { false, true, false, false, View.SmallIcon, new ImageList(), 1, 1 }; 3856yield return new object[] { false, true, false, false, View.SmallIcon, CreateImageListNonEmpty(), 1, 1 }; 3868yield return new object[] { false, false, true, false, View.SmallIcon, null, 1, 0 }; 3869yield return new object[] { false, false, true, false, View.SmallIcon, new ImageList(), 1, 0 }; 3870yield return new object[] { false, false, true, false, View.SmallIcon, CreateImageListNonEmpty(), 1, 0 }; 3886yield return new object[] { false, false, autoArrange, true, View.SmallIcon, null, 0, 0 }; 3887yield return new object[] { false, false, autoArrange, true, View.SmallIcon, new ImageList(), 0, 0 }; 3888yield return new object[] { false, false, autoArrange, true, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 3900yield return new object[] { false, false, false, false, View.SmallIcon, null, 0, 0 }; 3901yield return new object[] { false, false, false, false, View.SmallIcon, new ImageList(), 0, 0 }; 3902yield return new object[] { false, false, false, false, View.SmallIcon, CreateImageListNonEmpty(), 0, 0 }; 5035listView.View = View.SmallIcon; 5091listView.View = View.SmallIcon; 5137[InlineData(View.SmallIcon)] 5164[InlineData(View.SmallIcon)] 5189[InlineData(View.SmallIcon)]