1407 references to View
Accessibility_Core_App (6)
CommonControl1.cs (4)
25listView1.View = View.LargeIcon; 30listView1.View = View.SmallIcon; 35listView1.View = View.Details; 40listView1.View = View.List;
DataBindingExample.cs (1)
88listView1.View = View.Details;
DataBindingExample.Designer.cs (1)
245this.listView1.View = System.Windows.Forms.View.Details;
System.Windows.Forms (119)
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
395if (ListView is not null && ListView.IsHandleCreated && !ListView.Disposing && ListView.View == View.Details)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
97if (Item.ListView is not null && Item.ListView.View == View.Details)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (3)
311if (_owner.View == View.Tile) 505if (_owner.IsHandleCreated && _owner.View != View.Tile) 559if (_owner.IsHandleCreated && _owner.View == View.Tile)
System\Windows\Forms\Controls\ListView\ListView.cs (61)
56private View _viewStyle = View.LargeIcon; 453if (value && View == View.Tile) 498if (value && View == View.Tile) 519(value && View == View.List && IsHandleCreated) || 520(value && (View == View.SmallIcon || View == View.LargeIcon) && IsHandleCreated)) 719if (_viewStyle != View.Tile) 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"); 980internal bool GroupsDisplayed => View != View.List && GroupsEnabled; 1457if (View == View.SmallIcon) 1459View = View.LargeIcon; 1460View = View.SmallIcon; 1467if (View == View.Details) 1509if (View is View.LargeIcon or View.SmallIcon) 1614internal bool SupportsListViewSubItems => View == View.Details || (View == View.Tile && Application.ComCtlSupportsVisualStyles); 1712if (_viewStyle is View.LargeIcon or View.SmallIcon or View.Tile) 1727if (_viewStyle is View.LargeIcon or View.SmallIcon or View.Tile) 1795[DefaultValue(View.LargeIcon)] 1797public View View 1805if (value == View.Tile && CheckBoxes) 1815if (value == View.Tile && VirtualMode) 1829if (_viewStyle == View.Tile) 1866bool keepTopItem = IsHandleCreated && VirtualMode && View == View.Details && !DesignMode; 1927if (value && View == View.Tile) 2233if (_viewStyle != View.SmallIcon) 2473&& View == View.Details 2499View == View.Details && 2648if (_viewStyle == View.Details) 2666if (_viewStyle is View.Details or View.Tile) 3211if (View is not View.SmallIcon and not View.LargeIcon) 3576if (View == View.Details && Columns.Count == 0) 3605if (View == View.Details && Columns.Count == 0) 3639if (View == View.Tile) 3644if (View == View.Details) 3781if (_viewStyle == View.Details && IsHandleCreated) 3818int idx = IsHandleCreated && View != View.Tile ? InsertColumnNative(index, ch) : index; 3854if (ch.ActualImageIndex_Internal != -1 && IsHandleCreated && View != View.Tile) 3885if (IsHandleCreated && View == View.Tile) 3993if (IsHandleCreated && Items.Count == 0 && View == View.SmallIcon && Application.ComCtlSupportsVisualStyles) 4241View = View.LargeIcon; 4242View = View.SmallIcon; 4582if (_viewStyle == View.Tile) 4795if (View == View.Details && !Scrollable && IsHandleCreated) 4993if (View is View.LargeIcon or View.SmallIcon) 5022if (View == View.LargeIcon) 5465if (View == View.List && subItemIndex == 0) 5582if (!VirtualMode && IsHandleCreated && AutoArrange && (View == View.LargeIcon || View == View.SmallIcon)) 5793Debug.Assert(_viewStyle == View.Tile, "this function should be called only in Tile view"); 6955View == View.Details &&
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (8)
14private static readonly int[] s_enumViewValues = (int[])Enum.GetValues(typeof(View)); 191=> [(int)View.Details]; 230=> (VARIANT)(int)((this.TryGetOwnerAs(out ListView? owningListView) && owningListView.View == View.Details) 316View.Details => ((ListViewItem.ListViewItemDetailsAccessibleObject)itemAccessibleObject) 321View.Tile => hitTestInfo.SubItem.Index > 0 ? hitTestInfo.SubItem.AccessibilityObject : itemAccessibleObject, 351|| (patternId == UIA_PATTERN_ID.UIA_GridPatternId && owningListView.View == View.Details) 352|| (patternId == UIA_PATTERN_ID.UIA_TablePatternId && owningListView.View == View.Details) 366owningListView.View = (View)view;
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (3)
263if (_owner.View == View.SmallIcon) 272_owner.View = View.LargeIcon; 273_owner.View = View.SmallIcon;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (12)
55private View _accessibilityObjectView; 259View.Details => new ListViewItemDetailsAccessibleObject(this), 260View.LargeIcon => new ListViewItemLargeIconAccessibleObject(this), 261View.List => new ListViewItemListAccessibleObject(this), 262View.SmallIcon => new ListViewItemSmallIconAccessibleObject(this), 263View.Tile => new ListViewItemTileAccessibleObject(this), 529case View.LargeIcon: 530case View.Tile: 532case View.SmallIcon: 533case View.Details: 534case View.List: 978if (_listView is not null && _listView.IsHandleCreated && _listView.View == View.Details)
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (6)
32case View.SmallIcon: 33case View.LargeIcon: 45case View.Details: 101View.Details or View.List => GetDetailsListRectangle(point, item, itemBounds), 102View.Tile => GetTileRectangle(point, item, itemBounds),
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
95protected abstract View View { get; }
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (6)
25protected override View View => View.Details; 46if (_owningListView.View != View.Details) 48throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Details))); 73if (_owningListView.View != View.Details) 75throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Details)));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemLargeIconAccessibleObject.cs (2)
14protected override View View => View.LargeIcon;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (2)
26protected override View View => View.List;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemSmallIconAccessibleObject.cs (2)
14protected override View View => View.SmallIcon;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (6)
18protected override View View => View.Tile; 40if (_owningListView.View != View.Tile) 42throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Tile))); 66if (_owningListView.View != View.Tile) 68throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Tile)));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (3)
85=> _owningListView.View == View.Details 142=> _owningListView.View == View.Details && Column > -1 150return _owningListView.View == View.Details;
System\Windows\Forms\Controls\ListView\ListViewLabelEditAccessibleObject.cs (2)
40: target.View == View.Tile 58=> _owningListView.TryGetTarget(out ListView? target) && target.View == View.Tile ? target._selectedItem?.SubItems[1].AccessibilityObject : null,
System.Windows.Forms.Design (7)
System\Windows\Forms\Design\ListViewActionList.cs (1)
36public View View
System\Windows\Forms\Design\ListViewDesigner.cs (4)
55private View View 64if (value == View.Details) 76if (listView.View == View.Details) 108if (lv.View == View.Details)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
171_listViewCannedMasks.View = View.Details;
System\Windows\Forms\Design\StyleEditorForm.cs (1)
318_columnsAndRowsListView.View = View.Details;
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\ListViewActionListTests.cs (2)
40_actionList.View = View.Details; 41_actionList.View.Should().Be(View.Details);
System.Windows.Forms.Tests (1264)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (115)
62Assert.Equal(new int[] { (int)View.Details }, accessibleObject.GetMultiViewProviderSupportedViews()); 70listView.View = View.Details; 72Assert.Equal(((int)(listView.View)).ToString(), accessibleObject.GetMultiViewProviderViewName((int)View.Details)); 230foreach (View view in Enum.GetValues(typeof(View))) 235if (view == View.Tile && virtualMode) 256public void ListViewAccessibleObject_OwnerHasDefaultGroup_ReturnsExpected(View view, bool virtualMode, bool showGroups, bool createHandle, bool createDefaultGroup) 314foreach (View view in Enum.GetValues(typeof(View))) 319if (view == View.Tile && virtualMode) 337public void ListViewAccessibleObject_OwnerHasDefaultGroup_ReturnsExpected_WithoutItems(View view, bool virtualMode, bool showGroups, bool createHandle) 379public void ListViewAccessibleObject_GetChildCount_ReturnsExpected(View view, bool virtualMode, bool showGroups, bool createHandle, bool createGroup) 440public void ListViewAccessibleObject_GetChildCount_ReturnsExpected_WithoutItems(View view, bool virtualMode, bool showGroups, bool createHandle, bool createGroup) 479foreach (View view in Enum.GetValues(typeof(View))) 484if (view == View.Tile && virtualMode) 502public void ListViewAccessibleObject_GetChild_ReturnsExpected_IfHandleCreated(View view, bool virtualMode, bool showGroups, bool createGroup) 573public void ListViewAccessibleObject_GetChild_ReturnsExpected_IfHandleNotCreated(View view, bool virtualMode, bool showGroups, bool createGroup) 628public void ListViewAccessibleObject_GetChildIndex_ReturnsExpected_WithDefaultGroup(View view, bool virtualMode, bool showGroups, bool createHandle, bool createGroup) 708public void ListViewAccessibleObject_GetChildIndex_ReturnsExpected_WithoutDefaultGroup(View view, bool virtualMode, bool showGroups, bool createHandle, bool createGroup) 790public void ListViewAccessibleObject_GetChildIndex_ReturnsExpected_WithoutVisibleItems(View view, bool virtualMode, bool showGroups, bool createHandle, bool createGroup) 842public void ListViewAccessibleObject_GetChildIndex_ReturnsMinusOne_IfChildIsNull(View view, bool virtualMode, bool showGroups, bool createHandle, bool createGroup) 900foreach (View view in Enum.GetValues(typeof(View))) 911public void ListViewAccessibleObject_GetSelectionInvoke_ReturnsExpected(View view, bool showGroups) 948public void ListViewAccessibleObject_GetSelectionInvoke_WithoutSelectedItems_ReturnsExpected(View view, bool showGroups) 967public void ListViewAccessibleObject_GetSelectionInvoke_ReturnsExpected_IfHandleNotCreated(View view, bool showGroups) 986foreach (View view in Enum.GetValues(typeof(View))) 989if (view == View.Tile) 1003public void ListViewAccessibleObject_GetSelectionInvoke_VirtualMode_ReturnsExpected(View view, bool showGroups) 1049public void ListViewAccessibleObject_GetSelectionInvoke_WithoutSelectedItems_VirtualModeReturnsExpected(View view, bool showGroups) 1080public void ListViewAccessibleObject_GetSelectionInvoke_VirtualMode_ReturnsExpected_IfHandleNotCreated(View view, bool showGroups) 1139[InlineData(View.Details)] 1140[InlineData(View.LargeIcon)] 1141[InlineData(View.List)] 1142[InlineData(View.SmallIcon)] 1143[InlineData(View.Tile)] 1144public void ListViewAccessibleObject_HitTest_DoesNotReturnNull_IfHandleIsCreated(View view) 1163[InlineData(View.Details)] 1164[InlineData(View.LargeIcon)] 1165[InlineData(View.List)] 1166[InlineData(View.SmallIcon)] 1167[InlineData(View.Tile)] 1168public void ListViewAccessibleObject_HitTest_ReturnsNull_IfHandleIsNotCreated(View view) 1188listView.View = View.Details; 1214listView.View = View.Details; 1234foreach (View view in Enum.GetValues(typeof(View))) 1239if (virtualMode && view == View.Tile) 1254public void ListViewAccessibleObject_GetChildCount_ReturnsExpected_IfHandleIsNotCreated(View view, bool showGroups, bool virtualMode) 1264public void ListViewAccessibleObject_GetChildCount_ReturnsExpected_IfHandleIsCreated(View view, bool showGroups, bool virtualMode) 1270int expectedCount = view != View.List && listView.GroupsEnabled ? 2 : 4; 1277public void ListViewAccessibleObject_GetChild_ReturnsNull_IfHandleIsNotCreated(View view, bool showGroups, bool virtualMode) 1287public void ListViewAccessibleObject_GetChild_ReturnsNull_IfIndexIsNegative(View view, bool showGroups, bool virtualMode) 1297public void ListViewAccessibleObject_GetChild_ReturnsNull_IfIndexIsWrong(View view, bool showGroups, bool virtualMode) 1307public void ListViewAccessibleObject_GetChild_ReturnsExpected_DetailsView(View view, bool showGroups, bool virtualMode) 1312if (listView.GroupsEnabled && view != View.List) 1333public void ListViewAccessibleObject_FragmentNavigate_ReturnsNull_IfHandleIsNotCreated(View view, bool showGroups, bool virtualMode) 1348public void ListViewAccessibleObject_FragmentNavigate_ReturnsNull_IfHandleIsCreated(View view, bool showGroups, bool virtualMode) 1361public void ListViewAccessibleObject_FragmentNavigate_Child_ReturnsExpected(View view, bool showGroups, bool virtualMode) 1365AccessibleObject expectedFirstChild = listView.GroupsEnabled && view != View.List 1369AccessibleObject expectedLastChild = listView.GroupsEnabled && view != View.List 1381private ListView GetListViewWithData(View view, bool createControl, bool virtualMode, bool showGroups) 1442[InlineData(View.Details)] 1443[InlineData(View.LargeIcon)] 1444[InlineData(View.SmallIcon)] 1445[InlineData(View.Tile)] 1446public void ListViewAccessibleObject_FragmentNavigate_ReturnExpected_InvisibleGroups(View view) 1468[InlineData(View.Details)] 1469[InlineData(View.LargeIcon)] 1470[InlineData(View.SmallIcon)] 1471[InlineData(View.Tile)] 1472public void ListViewAccessibleObject_FragmentNavigate_ReturnExpected_InvisibleGroups_AfterAddingItems(View view) 1505[InlineData(View.Details)] 1506[InlineData(View.LargeIcon)] 1507[InlineData(View.SmallIcon)] 1508[InlineData(View.Tile)] 1509public void ListViewAccessibleObject_FragmentNavigate_ReturnExpected_InvisibleGroups_AfterRemovingItems(View view) 1538[InlineData(View.Details)] 1539[InlineData(View.LargeIcon)] 1540[InlineData(View.SmallIcon)] 1541[InlineData(View.Tile)] 1542public void ListViewAccessibleObject_GetChildCount_ReturnExpected_InvisibleGroups(View view) 1557[InlineData(View.Details)] 1558[InlineData(View.LargeIcon)] 1559[InlineData(View.SmallIcon)] 1560[InlineData(View.Tile)] 1561public void ListViewAccessibleObject_GetChildCount_ReturnExpected_InvisibleGroups_AfterAddingItems(View view) 1585[InlineData(View.Details)] 1586[InlineData(View.LargeIcon)] 1587[InlineData(View.SmallIcon)] 1588[InlineData(View.Tile)] 1589public void ListViewAccessibleObject_GetChildCount_ReturnExpected_InvisibleGroups_AfterRemovingItems(View view) 1609[InlineData(View.Details)] 1610[InlineData(View.LargeIcon)] 1611[InlineData(View.SmallIcon)] 1612[InlineData(View.Tile)] 1613public void ListViewAccessibleObject_GetChildCount_ReturnExpected_GroupWithInvalidAccessibleObject(View view) 1631[InlineData(View.Details)] 1632[InlineData(View.LargeIcon)] 1633[InlineData(View.SmallIcon)] 1634[InlineData(View.Tile)] 1635public void ListViewAccessibleObject_GetChild_ReturnExpected_InvisibleGroups(View view) 1655[InlineData(View.Details)] 1656[InlineData(View.LargeIcon)] 1657[InlineData(View.SmallIcon)] 1658[InlineData(View.Tile)] 1659public void ListViewAccessibleObject_GetChild_ReturnExpected_InvisibleGroups_AfterAddingItems(View view) 1689[InlineData(View.Details)] 1690[InlineData(View.LargeIcon)] 1691[InlineData(View.SmallIcon)] 1692[InlineData(View.Tile)] 1693public void ListViewAccessibleObject_GetChild_ReturnExpected_InvisibleGroups_AfterRemovingItems(View view) 1718private ListView GetListViewItemWithEmptyGroups(View view)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (98)
132public void ListViewGroupAccessibleObject_FragmentNavigate_ReturnsExpected_WithDefaultGroup(View view, bool showGroups, bool createHandle) 202public void ListViewGroupAccessibleObject_FragmentNavigate_ReturnsExpected_WithoutDefaultGroup(View view, bool showGroups, bool createHandle) 351foreach (View view in Enum.GetValues(typeof(View))) 365public void ListViewGroupAccessibleObject_GetChildIndex_ReturnsExpected(View view, bool showGroups, bool createHandle) 460public void ListViewGroupAccessibleObject_GetChildIndex_ReturnsMinusOne_IfChildIsNull(View view, bool showGroups, bool createHandle) 496public void ListViewGroupAccessibleObject_GetChildCount_Invoke_ReturnsExpected(View view, bool showGroups, bool createHandle) 535foreach (View view in Enum.GetValues(typeof(View))) 538if (view == View.Tile) 557foreach (View view in Enum.GetValues(typeof(View))) 560if (virtualMode && view == View.Tile) 578public void ListViewGroupAccessibleObject_GetChild_Invoke_ReturnsExpected(View view, bool showGroups, bool createHandle) 634foreach (View view in Enum.GetValues(typeof(View))) 637if (virtualMode && view == View.Tile) 655public void ListViewGroup_GroupAddedWithItem_AccessibleObject_DoesntThrowException(View view, bool showGroups, bool createHandle, bool virtualMode) 698public void ListViewGroupAccessibleObject_ExpandCollapseState_ReturnExpected(View view, bool showGroups, bool createHandle) 846[InlineData(View.Details)] 847[InlineData(View.LargeIcon)] 848[InlineData(View.SmallIcon)] 849[InlineData(View.Tile)] 850public void ListViewGroupAccessibleObject_FragmentNavigate_Sibling_ReturnsExpected_InvisibleGroups(View view) 870[InlineData(View.Details)] 871[InlineData(View.LargeIcon)] 872[InlineData(View.SmallIcon)] 873[InlineData(View.Tile)] 874public void ListViewGroupAccessibleObject_FragmentNavigate_ReturnsExpected_Sibling_InvisibleGroups_AfterAddingItems(View view) 910[InlineData(View.Details)] 911[InlineData(View.LargeIcon)] 912[InlineData(View.SmallIcon)] 913[InlineData(View.Tile)] 914public void ListViewGroupAccessibleObject_FragmentNavigate_Sibling_ReturnsExpected_InvisibleGroups_AfterRemovingItems(View view) 939[InlineData(View.Details)] 940[InlineData(View.LargeIcon)] 941[InlineData(View.SmallIcon)] 942[InlineData(View.Tile)] 943public void ListViewGroupAccessibleObject_FragmentNavigate_Child_ReturnsExpected_InvisibleItems(View view) 959[InlineData(View.Details)] 960[InlineData(View.LargeIcon)] 961[InlineData(View.SmallIcon)] 962[InlineData(View.Tile)] 963public void ListViewGroupAccessibleObject_FragmentNavigate_Child_ReturnsExpected_InvisibleItems_AfterAddingItems(View view) 985[InlineData(View.Details)] 986[InlineData(View.LargeIcon)] 987[InlineData(View.SmallIcon)] 988[InlineData(View.Tile)] 989public void ListViewGroupAccessibleObject_FragmentNavigate_Child_ReturnsExpected_InvisibleItems_AfterRemovingItems(View view) 1010[InlineData(View.Details)] 1011[InlineData(View.LargeIcon)] 1012[InlineData(View.SmallIcon)] 1013[InlineData(View.Tile)] 1014public void ListViewGroupAccessibleObject_GetChildCount_ReturnsExpected_InvisibleItems(View view) 1029[InlineData(View.Details)] 1030[InlineData(View.LargeIcon)] 1031[InlineData(View.SmallIcon)] 1032[InlineData(View.Tile)] 1033public void ListViewGroupAccessibleObject_GetChildCount_ReturnsExpected_InvisibleItems_AfterAddingItems(View view) 1053[InlineData(View.Details)] 1054[InlineData(View.LargeIcon)] 1055[InlineData(View.SmallIcon)] 1056[InlineData(View.Tile)] 1057public void ListViewGroupAccessibleObject_GetChildCount_ReturnsExpected_InvisibleItems_AfterRemovingItems(View view) 1080[InlineData(View.Details)] 1081[InlineData(View.LargeIcon)] 1082[InlineData(View.SmallIcon)] 1083[InlineData(View.Tile)] 1084public void ListViewGroupAccessibleObject_GetChild_ReturnsExpected_InvisibleItems(View view) 1101[InlineData(View.Details)] 1102[InlineData(View.LargeIcon)] 1103[InlineData(View.SmallIcon)] 1104[InlineData(View.Tile)] 1105public void ListViewGroupAccessibleObject_GetChild_ReturnsExpected_InvisibleItems_AfterAddingItems(View view) 1127[InlineData(View.Details)] 1128[InlineData(View.LargeIcon)] 1129[InlineData(View.SmallIcon)] 1130[InlineData(View.Tile)] 1131public void ListViewGroupAccessibleObject_GetChild_ReturnsExpected_InvisibleItems_AfterRemovingItems(View view) 1150public void ListViewGroupAccessibleObject_FragmentRoot_Returns_ListViewAccessibleObject(View view, bool showGroups, bool createHandle) 1172public void ListViewGroupAccessibleObject_Bounds_ReturnsExpected(View view, bool showGroups, bool createHandle) 1184[InlineData(View.Details)] 1185[InlineData(View.LargeIcon)] 1186[InlineData(View.SmallIcon)] 1187[InlineData(View.Tile)] 1188public void ListViewGroupAccessibleObject_Bounds_LocatedInsideListViewBounds(View view) 1205[InlineData(View.Details)] 1206[InlineData(View.LargeIcon)] 1207[InlineData(View.SmallIcon)] 1208[InlineData(View.Tile)] 1209public void ListViewGroupAccessibleObject_Bounds_ReturnEmptyRectangle_ForEmptyGroup(View view) 1227private ListView GetListViewItemWithEmptyGroups(View view) 1253public void ListViewGroupAccessibleObject_SetFocus_WorksCorrectly(View view, bool showGroups, bool createHandle) 1298foreach (View view in Enum.GetValues(typeof(View))) 1315public void ListViewGroupAccessibleObject_IsPatternSupported_ReturnFalse_ForCollapsedStateDefault(View view, bool showGroups, bool createHandle, ListViewGroupCollapsedState listViewGroupCollapsedState) 1397private ListView GetListViewItemWithInvisibleItems(View view) 1418private ListView GetListViewWithGroups(View view, bool showGroups, bool createHandle, bool virtualMode)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (236)
48foreach (View view in Enum.GetValues(typeof(View))) 62public void ListViewItemAccessibleObject_InGroup_Ctor(View view, bool showGroups, bool createHandle) 118foreach (View view in Enum.GetValues(typeof(View))) 125if (view == View.Tile && virtualMode) 141public void ListViewItemAccessibleObject_FragmentNavigate_Parent_ReturnExpected(View view, bool createControl, bool virtualMode, bool showGroups) 160&& listView.View != View.List 172foreach (View view in Enum.GetValues(typeof(View))) 177if (view == View.Tile && virtualMode) 192public void ListViewItemAccessibleObject_FragmentNavigate_NextSibling_ReturnExpected_IfHandleIsCreated(View view, bool virtualMode, bool showGroups) 201if (Application.UseVisualStyles && showGroups && !virtualMode && listView.View != View.List) 221public void ListViewItemAccessibleObject_FragmentNavigate_NextSibling_ReturnExpected_IfHandleIsNotCreated(View view, bool virtualMode, bool showGroups) 239public void ListViewItemAccessibleObject_FragmentNavigate_PreviousSibling_ReturnExpected_IfHandleIsCreated(View view, bool virtualMode, bool showGroups) 248if (Application.UseVisualStyles && showGroups && !virtualMode && listView.View != View.List) 268public void ListViewItemAccessibleObject_FragmentNavigate_PreviousSibling_ReturnExpected_IfHandleIsNotCreated(View view, bool virtualMode, bool showGroups) 286foreach (View view in new View[] { View.List, View.LargeIcon, View.SmallIcon }) 303public void ListViewItemAccessibleObject_FragmentNavigate_FirstChild_ReturnExpected(View view, bool createControl, bool virtualMode, bool showGroups) 326using ListView listView = GetListViewWithData(View.Tile, createControl, virtualMode: false, showGroups); 347using ListView listView = GetListViewWithData(View.Details, createControl: true, virtualMode: virtualMode, showGroups); 379using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 3, subItemCount: 3); 391public void ListViewItemAccessibleObject_FragmentNavigate_LastChild_ReturnExpected(View view, bool createControl, bool virtualMode, bool showGroups) 414using ListView listView = GetListViewWithData(View.Tile, createControl, virtualMode: false, showGroups); 432using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 3, subItemCount: 3); 446using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 3, subItemCount: 0); 464using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 1, subItemCount: 5); 480using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 2, subItemCount: 0); 509using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 2, subItemCount: 1); 536foreach (View view in Enum.GetValues(typeof(View))) 539if (view == View.Tile) 554public void ListViewItemAccessibleObject_FragmentNavigate_ListWithItems_VirtualMode_VirtualListSize1_ReturnsExpected(View view, bool showGroups) 628foreach (View view in Enum.GetValues(typeof(View))) 643public void ListViewItemAccessibleObject_State_ReturnExpected(View view, bool selected, AccessibleStates expectedAccessibleStates, bool createHandle) 669foreach (View view in Enum.GetValues(typeof(View))) 672if (view == View.Tile) 690public void ListViewItemAccessibleObject_State_Virtual_ModeReturnExpected(View view, bool selected, AccessibleStates expectedAccessibleStates, bool createHandle) 732foreach (View view in Enum.GetValues(typeof(View))) 735if (virtualMode && view == View.Tile) 750public void ListViewItemAccessibleObject_Bounds_ReturnExpected_IfHandleIsCreated(View view, bool showGroups, bool virtualMode) 772public void ListViewItemAccessibleObject_Bounds_ReturnExpected_IfHandleIsNotCreated(View view, bool showGroups, bool virtualMode) 806foreach (View view in Enum.GetValues(typeof(View))) 809if (view == View.Tile) 832public void ListViewItemAccessibleObject_IsTogglePatternSupported_ReturnExpected(View view, bool showGroups, bool createHandle, bool virtualMode, bool checkboxesEnabled) 857foreach (View view in Enum.GetValues(typeof(View))) 860if (view == View.Tile) 880public void ListViewItemAccessibleObject_ToggleState_ReturnExpected(View view, bool showGroups, bool createHandle, bool virtualMode) 915public void ListViewItemAccessibleObject_Toggle_Invoke(View view, bool showGroups, bool createHandle, bool virtualMode) 953[InlineData(View.Details)] 954[InlineData(View.LargeIcon)] 955[InlineData(View.SmallIcon)] 956[InlineData(View.Tile)] 957public void ListViewItemAccessibleObject_FragmentNavigate_Sibling_ReturnsExpected_InvisibleItems(View view) 971[InlineData(View.Details)] 972[InlineData(View.LargeIcon)] 973[InlineData(View.SmallIcon)] 974[InlineData(View.Tile)] 975public void ListViewItemAccessibleObject_FragmentNavigate_Sibling_ReturnsExpected_InvisibleItems_AfterAddingItems(View view) 1006[InlineData(View.Details)] 1007[InlineData(View.LargeIcon)] 1008[InlineData(View.SmallIcon)] 1009[InlineData(View.Tile)] 1010public void ListViewItemAccessibleObject_FragmentNavigate_Sibling_ReturnsExpected_InvisibleItems_AfterRemovingItems(View view) 1030public void ListViewItemAccessibleObject_GetChildCount_ReturnsExpected(View view, bool createControl, bool virtualMode, bool showGroups) 1038? view == View.Details ? 3 : 0 1048public void ListViewItemAccessibleObject_GetChild_ReturnsExpected(View view, bool createControl, bool virtualMode, bool showGroups) 1056if (view == View.Details) 1088public void ListViewItemAccessibleObject_GetChild_ReturnsExpected_ForManySubItems(View view, bool createControl, bool virtualMode, bool showGroups) 1096if (view == View.Details) 1123View view, 1187private ListView GetListViewWithData(View view, bool createControl, bool virtualMode, bool showGroups, bool groupsEnabled = true, bool itemsInGroup = true, ListViewGroupCollapsedState state = ListViewGroupCollapsedState.Default) 1252private ListView GetListViewItemWithInvisibleItems(View view) 1274[InlineData(View.Details)] 1275[InlineData(View.LargeIcon)] 1276[InlineData(View.SmallIcon)] 1277[InlineData(View.Tile)] 1278public void ListViewItemAccessibleObject_FragmentNavigate_Sibling_Parent_ReturnsExpected_AfterAddingGroup(View view) 1331[InlineData(View.Details)] 1332[InlineData(View.LargeIcon)] 1333[InlineData(View.SmallIcon)] 1334[InlineData(View.Tile)] 1335public void ListViewItemAccessibleObject_FragmentNavigate_Sibling_Parent_ReturnsExpected_AfterRemovingGroup(View view) 1389[InlineData(View.Details)] 1390[InlineData(View.LargeIcon)] 1391[InlineData(View.SmallIcon)] 1392[InlineData(View.Tile)] 1393public void ListViewItemAccessibleObject_FragmentNavigate_Sibling_Parent_ReturnsExpected_AfterUpdatingGroup(View view) 1451View = View.List, 1529[InlineData(View.Details)] 1530[InlineData(View.LargeIcon)] 1531[InlineData(View.List)] 1532[InlineData(View.SmallIcon)] 1533[InlineData(View.Tile)] 1534public void ListViewItemAccessibleObject_GetChildIndex_ReturnsExpected(View view) 1542if (view == View.Details) 1559[InlineData(View.Details)] 1560[InlineData(View.LargeIcon)] 1561[InlineData(View.List)] 1562[InlineData(View.SmallIcon)] 1563[InlineData(View.Tile)] 1564public void ListViewItemAccessibleObject_GetChildIndex_ReturnsMinusOne_IfChildIsNull(View view) 1574[InlineData(View.Details)] 1575[InlineData(View.LargeIcon)] 1576[InlineData(View.List)] 1577[InlineData(View.SmallIcon)] 1578[InlineData(View.Tile)] 1579public void ListViewItemAccessibleObject_GetChildIndex_ReturnsMinusOne_IfSubItemNotExists(View view) 1595using ListView listView = new() { View = View.Details }; 1619View = View.Details, 1633[InlineData(View.Details)] 1634[InlineData(View.LargeIcon)] 1635[InlineData(View.List)] 1636[InlineData(View.SmallIcon)] 1637[InlineData(View.Tile)] 1638public void ListViewItemAccessibleObject_GetChildIndex_ReturnsMinusOne_ForInvalidChild(View view) 1651[InlineData(View.Details)] 1652[InlineData(View.LargeIcon)] 1653[InlineData(View.List)] 1654[InlineData(View.SmallIcon)] 1655[InlineData(View.Tile)] 1656public void ListViewItemAccessibleObject_ReturnExpectedType(View view) 1663case View.Details: 1666case View.LargeIcon: 1669case View.List: 1672case View.SmallIcon: 1675case View.Tile: 1683foreach (View oldView in Enum.GetValues(typeof(View))) 1685foreach (View newView in Enum.GetValues(typeof(View))) 1697public void ListViewItemAccessibleObject_ReturnExpectedType_AfterChangingView(View oldView, View newView) 1711case View.Details: 1714case View.LargeIcon: 1717case View.List: 1720case View.SmallIcon: 1723case View.Tile: 1731[InlineData(View.Details, View.LargeIcon)] 1732[InlineData(View.Details, View.List)] 1733[InlineData(View.Details, View.SmallIcon)] 1734[InlineData(View.Details, View.Tile)] 1735[InlineData(View.LargeIcon, View.Details)] 1736[InlineData(View.LargeIcon, View.List)] 1737[InlineData(View.LargeIcon, View.SmallIcon)] 1738[InlineData(View.LargeIcon, View.Tile)] 1739[InlineData(View.List, View.Details)] 1740[InlineData(View.List, View.LargeIcon)] 1741[InlineData(View.List, View.SmallIcon)] 1742[InlineData(View.List, View.Tile)] 1743[InlineData(View.SmallIcon, View.Details)] 1744[InlineData(View.SmallIcon, View.LargeIcon)] 1745[InlineData(View.SmallIcon, View.List)] 1746[InlineData(View.SmallIcon, View.Tile)] 1747[InlineData(View.Tile, View.Details)] 1748[InlineData(View.Tile, View.LargeIcon)] 1749[InlineData(View.Tile, View.List)] 1750[InlineData(View.Tile, View.SmallIcon)] 1751public void ListViewItemAccessibleObject_GetChild_ReturnException_AfterChangingView(View oldView, View newView) 1764[InlineData(View.Details, View.LargeIcon)] 1765[InlineData(View.Details, View.List)] 1766[InlineData(View.Details, View.SmallIcon)] 1767[InlineData(View.Details, View.Tile)] 1768[InlineData(View.LargeIcon, View.Details)] 1769[InlineData(View.LargeIcon, View.List)] 1770[InlineData(View.LargeIcon, View.SmallIcon)] 1771[InlineData(View.LargeIcon, View.Tile)] 1772[InlineData(View.List, View.Details)] 1773[InlineData(View.List, View.LargeIcon)] 1774[InlineData(View.List, View.SmallIcon)] 1775[InlineData(View.List, View.Tile)] 1776[InlineData(View.SmallIcon, View.Details)] 1777[InlineData(View.SmallIcon, View.LargeIcon)] 1778[InlineData(View.SmallIcon, View.List)] 1779[InlineData(View.SmallIcon, View.Tile)] 1780[InlineData(View.Tile, View.Details)] 1781[InlineData(View.Tile, View.LargeIcon)] 1782[InlineData(View.Tile, View.List)] 1783[InlineData(View.Tile, View.SmallIcon)] 1784public void ListViewItemAccessibleObject_GetChildCount_ReturnException_AfterChangingView(View oldView, View newView) 1798foreach (View view in Enum.GetValues(typeof(View))) 1805if (virtualMode && view == View.Tile) 1830public void ListViewItemAccessibleObject_GetPropertyValue_ReturnsFalseWhenCollapsedOrOffScreen(View view, bool createControl, bool virtualMode, bool showGroups, bool groupsEnabled, bool itemsInGroup, ListViewGroupCollapsedState state) 1918private ListView GetBoundsListView(View view, bool showGroups, bool virtualMode)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (14)
192[InlineData(View.Details)] 193[InlineData(View.Tile)] 194[InlineData(View.List)] 195[InlineData(View.SmallIcon)] 196[InlineData(View.LargeIcon)] 197public void ListViewItemBaseAccessibleObject_GetChild_ReturnsNull_IfViewIsNotDetailsOrTile(View view) 210[InlineData(View.Details)] 211[InlineData(View.Tile)] 212[InlineData(View.List)] 213[InlineData(View.SmallIcon)] 214[InlineData(View.LargeIcon)] 215public void ListViewItemBaseAccessibleObject_GetChildCount_ReturnsNull_IfViewIsNotDetailsOrTile(View view) 404protected override View View => View.List;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (9)
21using ListView control = new() { View = View.Details }; 36using ListView control = new() { View = View.Details }; 52using ListView control = new() { View = View.Details }; 68using ListView control = new() { View = View.Details }; 86using ListView control = new() { View = View.Details }; 99using ListView control = new() { View = View.Details }; 114using ListView control = new() { View = View.Details }; 138View = View.Details 171listView1.View = View.Details;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemImageAccessibleObjectTests.cs (2)
20View = View.Details, 46View = View.Details,
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemListAccessibleObjectTests.cs (4)
28control.View = View.List; 39control.View = View.List; 51control.View = View.List; 70control.View = View.List;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemWithImageAccessibleObjectTests.cs (10)
13public void ListViewItemListAccessibleObject_FragmentNavigate_Children_ReturnsNull_WithoutImage(View view) 28public void ListViewItemListAccessibleObject_FragmentNavigate_Children_IsExpected_WithImage(View view) 59public void ListViewItemListAccessibleObject_GetChild_ReturnsNull_WithoutImage(View view) 73public void ListViewItemListAccessibleObject_GetChild_IsExpected_WithImage(View view) 95public void ListViewItemListAccessibleObject_GetChildCount_WithoutImage(View view) 110public void ListViewItemListAccessibleObject_GetChildCount_WithImage(View view) 131public static TheoryData<View> GetViewTheoryData() 133return new TheoryData<View> 135View.LargeIcon, 136View.SmallIcon
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (55)
36list.View = View.Details; 73list.View = View.Details; 96[InlineData(View.Details)] 97[InlineData(View.LargeIcon)] 98[InlineData(View.List)] 99[InlineData(View.SmallIcon)] 100[InlineData(View.Tile)] 101public void ListViewSubItemAccessibleObject_GetPropertyValue_GridTablePattern_ReturnsExpected(View view) 108Assert.Equal(view == View.Details, (bool)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsGridItemPatternAvailablePropertyId)); 109Assert.Equal(view == View.Details, (bool)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsTableItemPatternAvailablePropertyId)); 114foreach (View view in new[] { View.List, View.LargeIcon, View.SmallIcon, View.Tile }) 121if (view == View.Tile && virtualMode) 137public void ListViewSubItemAccessibleObject_FragmentNavigate_ReturnsNull_List_Icon_Tile_View(View view, bool createControl, bool virtualMode, bool showGroups) 184public void ListViewSubItemAccessibleObject_Bounds_ReturnsEmptyRectangle_List_Icon_Tile_View(View view, bool createControl, bool virtualMode, bool showGroups) 216using ListView listView = GetListViewWithSubItemData(View.Details, createControl: true, virtualMode, showGroups, columnCount: 3, subItemCount: 2); 246using ListView listView = GetListViewWithSubItemData(View.Details, createControl: false, virtualMode, showGroups, columnCount: 3, subItemCount: 2); 287using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 3, subItemCount: 2); 323using ListView listView = GetListViewWithSubItemData(View.Tile, createControl, virtualMode: false, showGroups, columnCount: 3, subItemCount: 2); 356using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 2, subItemCount: 5); 382using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 5, subItemCount: 0); 408using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 5, subItemCount: 0); 427using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 4, subItemCount: 3); 461using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 2, subItemCount: 0); 484using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 3, subItemCount: 0); 507using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 2, subItemCount: 1); 530using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 3, subItemCount: 1); 553using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 5, subItemCount: 0); 591using ListView listView = GetListViewWithSubItemData(View.Details, createControl, virtualMode, showGroups, columnCount: 5, subItemCount: 0); 648list.View = View.Details; 678using ListView list = new() { View = View.Details }; 709[InlineData(View.LargeIcon, true)] 710[InlineData(View.LargeIcon, false)] 711[InlineData(View.List, true)] 712[InlineData(View.List, false)] 713[InlineData(View.SmallIcon, true)] 714[InlineData(View.SmallIcon, false)] 715[InlineData(View.Tile, true)] 716[InlineData(View.Tile, false)] 717public void ListViewSubItemAccessibleObject_ColumnProperty_ReturnMinusOne_ForNotTableView(View view, bool createControl) 772list.View = View.Details; 787View view, 872View = View.Details, 893View = View.Details, 970using ListView listView = new() { View = View.Details }; 984View.Details, 1000View.Details, 1027[InlineData(View.LargeIcon)] 1028[InlineData(View.List)] 1029[InlineData(View.SmallIcon)] 1030[InlineData(View.Tile)] 1031public void ListViewSubItemAccessibleObject_GetColumnHeaderItems_ReturnsNull_NoColumsViews(View view)
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
157View = View.Details,
System\Windows\Forms\ColumnHeaderCollectionTests.cs (3)
479View = View.Tile 504View = View.Tile 1006View = View.Tile
System\Windows\Forms\ColumnHeaderTests.cs (3)
1252View = View.Details 1355View = View.Details 1373View = View.Details
System\Windows\Forms\ControlTests.cs (1)
1057listView1.View = View.List;
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (4)
82foreach (View view in new View[] { View.Details, View.List })
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (37)
135[InlineData(true, View.List, 50, 50)] 136[InlineData(false, View.List, 50, 50)] 137[InlineData(true, View.Details, 46, 48)] 138[InlineData(false, View.Details, 46, 48)] 141View view, 156[InlineData(true, View.List)] 157[InlineData(false, View.List)] 158[InlineData(true, View.Details)] 159[InlineData(false, View.Details)] 162View view) 180using var listView = GetListView(virtualMode: false, view: View.Tile); 196using var listView = GetListView(virtualMode: false, view: View.Tile); 219using var listView = GetListView(virtualMode, view: View.List); 228using var listView = GetListView(virtualMode: false, view: View.Tile); 242using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 260using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 279using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 297using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 316using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 336using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 355using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 373using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 392using var listView = GetListView(virtualMode: false, view: View.LargeIcon, size: new Size(150, 150)); 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)); 590using var listView = GetListView(virtualMode: virtualMode, view: View.Details, virtualListSize: 3); 607using var listView = GetListView(virtualMode: virtualMode, view: View.Details, virtualListSize: 3); 625using var listView = GetListView(virtualMode: virtualMode, view: View.Details, virtualListSize: 3); 808View view = View.LargeIcon,
System\Windows\Forms\ListViewTests.cs (672)
147Assert.Equal(View.LargeIcon, control.View); 803yield return new object[] { useCompatibleStateImageBehavior, View.Details, alignment, imageListFactory(), value }; 804yield return new object[] { useCompatibleStateImageBehavior, View.LargeIcon, alignment, imageListFactory(), value }; 805yield return new object[] { useCompatibleStateImageBehavior, View.List, alignment, imageListFactory(), value }; 806yield return new object[] { useCompatibleStateImageBehavior, View.SmallIcon, alignment, imageListFactory(), value }; 815public void ListView_CheckBoxes_Set_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value) 841public void ListView_CheckBoxes_SetAutoArrange_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value) 907yield return new object[] { true, View.Details, alignment, imageListFactory(), true, 1, 0, 2, 0 }; 908yield return new object[] { true, View.LargeIcon, alignment, imageListFactory(), true, 1, 0, 2, 0 }; 909yield return new object[] { true, View.List, alignment, imageListFactory(), true, 1, 0, 2, 0 }; 910yield return new object[] { true, View.SmallIcon, alignment, imageListFactory(), true, 1, 0, 2, 0 }; 911yield return new object[] { true, View.Details, alignment, imageListFactory(), false, 0, 0, 1, 0 }; 912yield return new object[] { true, View.LargeIcon, alignment, imageListFactory(), false, 0, 0, 1, 0 }; 913yield return new object[] { true, View.List, alignment, imageListFactory(), false, 0, 0, 1, 0 }; 914yield return new object[] { true, View.SmallIcon, alignment, imageListFactory(), false, 0, 0, 1, 0 }; 919yield return new object[] { false, View.Details, alignment, null, true, 1, 0, 2, 0 }; 920yield return new object[] { false, View.LargeIcon, alignment, null, true, 2, 1, 3, 1 }; 921yield return new object[] { false, View.List, alignment, null, true, 1, 1, 2, 1 }; 922yield return new object[] { false, View.SmallIcon, alignment, null, true, 2, 1, 3, 1 }; 923yield return new object[] { false, View.Details, alignment, null, false, 0, 0, 1, 0 }; 924yield return new object[] { false, View.LargeIcon, alignment, null, false, 0, 0, 2, 1 }; 925yield return new object[] { false, View.List, alignment, null, false, 0, 0, 1, 1 }; 926yield return new object[] { false, View.SmallIcon, alignment, null, false, 0, 0, 2, 1 }; 928yield return new object[] { false, View.Details, alignment, new ImageList(), true, 1, 0, 2, 1 }; 929yield return new object[] { false, View.LargeIcon, alignment, new ImageList(), true, 2, 1, 4, 2 }; 930yield return new object[] { false, View.List, alignment, new ImageList(), true, 1, 1, 2, 2 }; 931yield return new object[] { false, View.SmallIcon, alignment, new ImageList(), true, 2, 1, 4, 2 }; 932yield return new object[] { false, View.Details, alignment, new ImageList(), false, 0, 0, 1, 0 }; 933yield return new object[] { false, View.LargeIcon, alignment, new ImageList(), false, 0, 0, 2, 1 }; 934yield return new object[] { false, View.List, alignment, new ImageList(), false, 0, 0, 1, 1 }; 935yield return new object[] { false, View.SmallIcon, alignment, new ImageList(), false, 0, 0, 2, 1 }; 941yield return new object[] { false, View.Details, ListViewAlignment.Left, imageListFactory(), true, 1, 0, 2, 1 }; 942yield return new object[] { false, View.LargeIcon, ListViewAlignment.Left, imageListFactory(), true, 2, 1, 4, 2 }; 943yield return new object[] { false, View.List, ListViewAlignment.Left, imageListFactory(), true, 1, 1, 2, 2 }; 944yield return new object[] { false, View.SmallIcon, ListViewAlignment.Left, imageListFactory(), true, 2, 1, 4, 2 }; 945yield return new object[] { false, View.Details, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 1, 0 }; 946yield return new object[] { false, View.LargeIcon, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 2, 1 }; 947yield return new object[] { false, View.List, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 1, 1 }; 948yield return new object[] { false, View.SmallIcon, ListViewAlignment.Left, imageListFactory(), false, 0, 0, 2, 1 }; 954public void ListView_CheckBoxes_SetWithHandle_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value, int expectedInvalidatedCallCount1, int expectedCreatedCallCount1, int expectedInvalidatedCallCount2, int expectedCreatedCallCount2) 997public void ListView_CheckBoxes_SetAutoArrangeWithHandle_GetReturnsExpected(bool useCompatibleStateImageBehavior, View view, ListViewAlignment alignment, ImageList stateImageList, bool value, int expectedInvalidatedCallCount1, int expectedCreatedCallCount1, int expectedInvalidatedCallCount2, int expectedCreatedCallCount2) 1082View = View.Tile 1541foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.SmallIcon }) 1549yield return new object[] { autoArrange, false, View.Tile, null }; 1550yield return new object[] { autoArrange, false, View.Tile, new ImageList() }; 1551yield return new object[] { autoArrange, false, View.Tile, CreateImageListNonEmpty() }; 1557public void ListView_GroupImageList_Set_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 1578public void ListView_GroupImageList_SetWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 1601yield return new object[] { true, false, View.Details, null }; 1602yield return new object[] { true, false, View.Details, new ImageList() }; 1603yield return new object[] { true, false, View.Details, CreateImageListNonEmpty() }; 1604yield return new object[] { true, false, View.LargeIcon, null }; 1605yield return new object[] { true, false, View.LargeIcon, new ImageList() }; 1606yield return new object[] { true, false, View.LargeIcon, CreateImageListNonEmpty() }; 1607yield return new object[] { true, false, View.List, null }; 1608yield return new object[] { true, false, View.List, new ImageList() }; 1609yield return new object[] { true, false, View.List, CreateImageListNonEmpty() }; 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() }; 1613yield return new object[] { true, false, View.Tile, null }; 1614yield return new object[] { true, false, View.Tile, new ImageList() }; 1615yield return new object[] { true, false, View.Tile, CreateImageListNonEmpty() }; 1619yield return new object[] { autoArrange, true, View.Details, null }; 1620yield return new object[] { autoArrange, true, View.Details, new ImageList() }; 1621yield return new object[] { autoArrange, true, View.Details, CreateImageListNonEmpty() }; 1622yield return new object[] { autoArrange, true, View.LargeIcon, null }; 1623yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList() }; 1624yield return new object[] { autoArrange, true, View.LargeIcon, CreateImageListNonEmpty() }; 1625yield return new object[] { autoArrange, true, View.List, null }; 1626yield return new object[] { autoArrange, true, View.List, new ImageList() }; 1627yield return new object[] { autoArrange, true, View.List, 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() }; 1633yield return new object[] { false, false, View.Details, null }; 1634yield return new object[] { false, false, View.Details, new ImageList() }; 1635yield return new object[] { false, false, View.Details, CreateImageListNonEmpty() }; 1636yield return new object[] { false, false, View.LargeIcon, null }; 1637yield return new object[] { false, false, View.LargeIcon, new ImageList() }; 1638yield return new object[] { false, false, View.LargeIcon, CreateImageListNonEmpty() }; 1639yield return new object[] { false, false, View.List, null }; 1640yield return new object[] { false, false, View.List, new ImageList() }; 1641yield return new object[] { false, false, View.List, 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() }; 1645yield return new object[] { false, false, View.Tile, null }; 1646yield return new object[] { false, false, View.Tile, new ImageList() }; 1647yield return new object[] { false, false, View.Tile, CreateImageListNonEmpty() }; 1652public void ListView_GroupImageList_SetWithHandle_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 1687yield return new object[] { true, false, View.Details, null }; 1688yield return new object[] { true, false, View.Details, new ImageList() }; 1689yield return new object[] { true, false, View.Details, CreateImageListNonEmpty() }; 1690yield return new object[] { true, false, View.LargeIcon, null }; 1691yield return new object[] { true, false, View.LargeIcon, new ImageList() }; 1692yield return new object[] { true, false, View.LargeIcon, CreateImageListNonEmpty() }; 1693yield return new object[] { true, false, View.List, null }; 1694yield return new object[] { true, false, View.List, new ImageList() }; 1695yield return new object[] { true, false, View.List, 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() }; 1699yield return new object[] { true, false, View.Tile, null }; 1700yield return new object[] { true, false, View.Tile, new ImageList() }; 1701yield return new object[] { true, false, View.Tile, CreateImageListNonEmpty() }; 1705yield return new object[] { autoArrange, true, View.Details, null }; 1706yield return new object[] { autoArrange, true, View.Details, new ImageList() }; 1707yield return new object[] { autoArrange, true, View.Details, CreateImageListNonEmpty() }; 1708yield return new object[] { autoArrange, true, View.LargeIcon, null }; 1709yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList() }; 1710yield return new object[] { autoArrange, true, View.LargeIcon, CreateImageListNonEmpty() }; 1711yield return new object[] { autoArrange, true, View.List, null }; 1712yield return new object[] { autoArrange, true, View.List, new ImageList() }; 1713yield return new object[] { autoArrange, true, View.List, 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() }; 1719yield return new object[] { false, false, View.Details, null }; 1720yield return new object[] { false, false, View.Details, new ImageList() }; 1721yield return new object[] { false, false, View.Details, CreateImageListNonEmpty() }; 1722yield return new object[] { false, false, View.LargeIcon, null }; 1723yield return new object[] { false, false, View.LargeIcon, new ImageList() }; 1724yield return new object[] { false, false, View.LargeIcon, CreateImageListNonEmpty() }; 1725yield return new object[] { false, false, View.List, null }; 1726yield return new object[] { false, false, View.List, new ImageList() }; 1727yield return new object[] { false, false, View.List, 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() }; 1731yield return new object[] { false, false, View.Tile, null }; 1732yield return new object[] { false, false, View.Tile, new ImageList() }; 1733yield return new object[] { false, false, View.Tile, CreateImageListNonEmpty() }; 1738public void ListView_GroupImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 2486foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.SmallIcon }) 2494yield return new object[] { autoArrange, false, View.Tile, null }; 2495yield return new object[] { autoArrange, false, View.Tile, new ImageList() }; 2496yield return new object[] { autoArrange, false, View.Tile, CreateImageListNonEmpty() }; 2502public void ListView_LargeImageList_Set_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 2522public void ListView_LargeImageList_SetWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 2545yield return new object[] { true, false, View.Details, null, 0 }; 2546yield return new object[] { true, false, View.Details, new ImageList(), 0 }; 2547yield return new object[] { true, false, View.Details, CreateImageListNonEmpty(), 0 }; 2548yield return new object[] { true, false, View.LargeIcon, null, 0 }; 2549yield return new object[] { true, false, View.LargeIcon, new ImageList(), 1 }; 2550yield return new object[] { true, false, View.LargeIcon, CreateImageListNonEmpty(), 1 }; 2551yield return new object[] { true, false, View.List, null, 0 }; 2552yield return new object[] { true, false, View.List, new ImageList(), 0 }; 2553yield return new object[] { true, false, View.List, CreateImageListNonEmpty(), 0 }; 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 }; 2557yield return new object[] { true, false, View.Tile, null, 0 }; 2558yield return new object[] { true, false, View.Tile, new ImageList(), 0 }; 2559yield return new object[] { true, false, View.Tile, CreateImageListNonEmpty(), 0 }; 2563yield return new object[] { autoArrange, true, View.Details, null, 0 }; 2564yield return new object[] { autoArrange, true, View.Details, new ImageList(), 0 }; 2565yield return new object[] { autoArrange, true, View.Details, CreateImageListNonEmpty(), 0 }; 2566yield return new object[] { autoArrange, true, View.LargeIcon, null, 0 }; 2567yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList(), 0 }; 2568yield return new object[] { autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 0 }; 2569yield return new object[] { autoArrange, true, View.List, null, 0 }; 2570yield return new object[] { autoArrange, true, View.List, new ImageList(), 0 }; 2571yield return new object[] { autoArrange, true, View.List, CreateImageListNonEmpty(), 0 }; 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 }; 2577yield return new object[] { false, false, View.Details, null, 0 }; 2578yield return new object[] { false, false, View.Details, new ImageList(), 0 }; 2579yield return new object[] { false, false, View.Details, CreateImageListNonEmpty(), 0 }; 2580yield return new object[] { false, false, View.LargeIcon, null, 0 }; 2581yield return new object[] { false, false, View.LargeIcon, new ImageList(), 0 }; 2582yield return new object[] { false, false, View.LargeIcon, CreateImageListNonEmpty(), 0 }; 2583yield return new object[] { false, false, View.List, null, 0 }; 2584yield return new object[] { false, false, View.List, new ImageList(), 0 }; 2585yield return new object[] { false, false, View.List, 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 }; 2589yield return new object[] { false, false, View.Tile, null, 0 }; 2590yield return new object[] { false, false, View.Tile, new ImageList(), 0 }; 2591yield return new object[] { false, false, View.Tile, CreateImageListNonEmpty(), 0 }; 2596public void ListView_LargeImageList_SetWithHandle_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount) 2630yield return new object[] { true, false, View.Details, null, 0 }; 2631yield return new object[] { true, false, View.Details, new ImageList(), 0 }; 2632yield return new object[] { true, false, View.Details, CreateImageListNonEmpty(), 0 }; 2633yield return new object[] { true, false, View.LargeIcon, null, 1 }; 2634yield return new object[] { true, false, View.LargeIcon, new ImageList(), 1 }; 2635yield return new object[] { true, false, View.LargeIcon, CreateImageListNonEmpty(), 1 }; 2636yield return new object[] { true, false, View.List, null, 0 }; 2637yield return new object[] { true, false, View.List, new ImageList(), 0 }; 2638yield return new object[] { true, false, View.List, 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 }; 2642yield return new object[] { true, false, View.Tile, null, 0 }; 2643yield return new object[] { true, false, View.Tile, new ImageList(), 0 }; 2644yield return new object[] { true, false, View.Tile, CreateImageListNonEmpty(), 0 }; 2648yield return new object[] { autoArrange, true, View.Details, null, 0 }; 2649yield return new object[] { autoArrange, true, View.Details, new ImageList(), 0 }; 2650yield return new object[] { autoArrange, true, View.Details, CreateImageListNonEmpty(), 0 }; 2651yield return new object[] { autoArrange, true, View.LargeIcon, null, 0 }; 2652yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList(), 0 }; 2653yield return new object[] { autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 0 }; 2654yield return new object[] { autoArrange, true, View.List, null, 0 }; 2655yield return new object[] { autoArrange, true, View.List, new ImageList(), 0 }; 2656yield return new object[] { autoArrange, true, View.List, CreateImageListNonEmpty(), 0 }; 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 }; 2662yield return new object[] { false, false, View.Details, null, 0 }; 2663yield return new object[] { false, false, View.Details, new ImageList(), 0 }; 2664yield return new object[] { false, false, View.Details, CreateImageListNonEmpty(), 0 }; 2665yield return new object[] { false, false, View.LargeIcon, null, 0 }; 2666yield return new object[] { false, false, View.LargeIcon, new ImageList(), 0 }; 2667yield return new object[] { false, false, View.LargeIcon, CreateImageListNonEmpty(), 0 }; 2668yield return new object[] { false, false, View.List, null, 0 }; 2669yield return new object[] { false, false, View.List, new ImageList(), 0 }; 2670yield return new object[] { false, false, View.List, 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 }; 2674yield return new object[] { false, false, View.Tile, null, 0 }; 2675yield return new object[] { false, false, View.Tile, new ImageList(), 0 }; 2676yield return new object[] { false, false, View.Tile, CreateImageListNonEmpty(), 0 }; 2681public void ListView_LargeImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount) 3150foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.SmallIcon }) 3158yield return new object[] { autoArrange, false, View.Tile, null }; 3159yield return new object[] { autoArrange, false, View.Tile, new ImageList() }; 3160yield return new object[] { autoArrange, false, View.Tile, CreateImageListNonEmpty() }; 3166public void ListView_SmallImageList_Set_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 3186public void ListView_SmallImageList_SetWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value) 3209yield return new object[] { true, false, View.Details, null, 0, 0 }; 3210yield return new object[] { true, false, View.Details, new ImageList(), 1, 0 }; 3211yield return new object[] { true, false, View.Details, CreateImageListNonEmpty(), 1, 0 }; 3212yield return new object[] { true, false, View.LargeIcon, null, 0, 0 }; 3213yield return new object[] { true, false, View.LargeIcon, new ImageList(), 1, 0 }; 3214yield return new object[] { true, false, View.LargeIcon, CreateImageListNonEmpty(), 1, 0 }; 3215yield return new object[] { true, false, View.List, null, 0, 0 }; 3216yield return new object[] { true, false, View.List, new ImageList(), 0, 0 }; 3217yield return new object[] { true, false, View.List, CreateImageListNonEmpty(), 0, 0 }; 3218yield return new object[] { true, false, View.Tile, null, 0, 0 }; 3219yield return new object[] { true, false, View.Tile, new ImageList(), 0, 0 }; 3220yield return new object[] { true, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3224yield return new object[] { autoArrange, true, View.Details, null, 0, 0 }; 3225yield return new object[] { autoArrange, true, View.Details, new ImageList(), 1, 0 }; 3226yield return new object[] { autoArrange, true, View.Details, CreateImageListNonEmpty(), 1, 0 }; 3227yield return new object[] { autoArrange, true, View.LargeIcon, null, 0, 0 }; 3228yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3229yield return new object[] { autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3230yield return new object[] { autoArrange, true, View.List, null, 0, 0 }; 3231yield return new object[] { autoArrange, true, View.List, new ImageList(), 0, 0 }; 3232yield return new object[] { autoArrange, true, View.List, CreateImageListNonEmpty(), 0, 0 }; 3235yield return new object[] { false, false, View.Details, null, 0, 0 }; 3236yield return new object[] { false, false, View.Details, new ImageList(), 1, 0 }; 3237yield return new object[] { false, false, View.Details, CreateImageListNonEmpty(), 1, 0 }; 3238yield return new object[] { false, false, View.LargeIcon, null, 0, 0 }; 3239yield return new object[] { false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3240yield return new object[] { false, false, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3241yield return new object[] { false, false, View.List, null, 0, 0 }; 3242yield return new object[] { false, false, View.List, new ImageList(), 0, 0 }; 3243yield return new object[] { false, false, View.List, CreateImageListNonEmpty(), 0, 0 }; 3244yield return new object[] { false, false, View.Tile, null, 0, 0 }; 3245yield return new object[] { false, false, View.Tile, new ImageList(), 0, 0 }; 3246yield return new object[] { false, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 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 }; 3286public void ListView_SmallImageList_SetWithHandle_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount, int expectedStyleChangedCallCount) 3320yield return new object[] { true, false, View.Details, null, 1, 0 }; 3321yield return new object[] { true, false, View.Details, new ImageList(), 1, 0 }; 3322yield return new object[] { true, false, View.Details, CreateImageListNonEmpty(), 1, 0 }; 3323yield return new object[] { true, false, View.LargeIcon, null, 1, 0 }; 3324yield return new object[] { true, false, View.LargeIcon, new ImageList(), 1, 0 }; 3325yield return new object[] { true, false, View.LargeIcon, CreateImageListNonEmpty(), 1, 0 }; 3326yield return new object[] { true, false, View.List, null, 0, 0 }; 3327yield return new object[] { true, false, View.List, new ImageList(), 0, 0 }; 3328yield return new object[] { true, false, View.List, CreateImageListNonEmpty(), 0, 0 }; 3329yield return new object[] { true, false, View.Tile, null, 0, 0 }; 3330yield return new object[] { true, false, View.Tile, new ImageList(), 0, 0 }; 3331yield return new object[] { true, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3335yield return new object[] { autoArrange, true, View.Details, null, 1, 0 }; 3336yield return new object[] { autoArrange, true, View.Details, new ImageList(), 1, 0 }; 3337yield return new object[] { autoArrange, true, View.Details, CreateImageListNonEmpty(), 1, 0 }; 3338yield return new object[] { autoArrange, true, View.LargeIcon, null, 0, 0 }; 3339yield return new object[] { autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3340yield return new object[] { autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3341yield return new object[] { autoArrange, true, View.List, null, 0, 0 }; 3342yield return new object[] { autoArrange, true, View.List, new ImageList(), 0, 0 }; 3343yield return new object[] { autoArrange, true, View.List, CreateImageListNonEmpty(), 0, 0 }; 3346yield return new object[] { false, false, View.Details, null, 1, 0 }; 3347yield return new object[] { false, false, View.Details, new ImageList(), 1, 0 }; 3348yield return new object[] { false, false, View.Details, CreateImageListNonEmpty(), 1, 0 }; 3349yield return new object[] { false, false, View.LargeIcon, null, 0, 0 }; 3350yield return new object[] { false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3351yield return new object[] { false, false, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3352yield return new object[] { false, false, View.List, null, 0, 0 }; 3353yield return new object[] { false, false, View.List, new ImageList(), 0, 0 }; 3354yield return new object[] { false, false, View.List, CreateImageListNonEmpty(), 0, 0 }; 3355yield return new object[] { false, false, View.Tile, null, 0, 0 }; 3356yield return new object[] { false, false, View.Tile, new ImageList(), 0, 0 }; 3357yield return new object[] { false, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 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 }; 3397public void ListView_SmallImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount, int expectedStyleChangedCallCount) 3507foreach (View view in new View[] { View.Details, View.LargeIcon, View.List, View.SmallIcon }) 3517yield return new object[] { useCompatibleStateImageBehavior, false, true, false, View.Tile, null }; 3518yield return new object[] { useCompatibleStateImageBehavior, false, true, false, View.Tile, new ImageList() }; 3519yield return new object[] { useCompatibleStateImageBehavior, false, true, false, View.Tile, CreateImageListNonEmpty() }; 3521yield return new object[] { useCompatibleStateImageBehavior, false, false, false, View.Tile, null }; 3522yield return new object[] { useCompatibleStateImageBehavior, false, false, false, View.Tile, new ImageList() }; 3523yield return new object[] { useCompatibleStateImageBehavior, false, false, false, View.Tile, CreateImageListNonEmpty() }; 3529public void ListView_StateImageList_Set_GetReturnsExpected(bool useCompatibleStateImageBehavior, bool checkBoxes, bool autoArrange, bool virtualMode, View view, ImageList value) 3551public void ListView_StateImageList_SetWithNonNullOldValue_GetReturnsExpected(bool useCompatibleStateImageBehavior, bool checkBoxes, bool autoArrange, bool virtualMode, View view, ImageList value) 3579yield return new object[] { true, checkBoxes, true, false, View.Details, null, 0, 0 }; 3580yield return new object[] { true, checkBoxes, true, false, View.Details, new ImageList(), 0, 0 }; 3581yield return new object[] { true, checkBoxes, true, false, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3582yield return new object[] { true, checkBoxes, true, false, View.LargeIcon, null, 0, 0 }; 3583yield return new object[] { true, checkBoxes, true, false, View.LargeIcon, new ImageList(), 0, 0 }; 3584yield return new object[] { true, checkBoxes, true, false, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3585yield return new object[] { true, checkBoxes, true, false, View.List, null, 0, 0 }; 3586yield return new object[] { true, checkBoxes, true, false, View.List, new ImageList(), 0, 0 }; 3587yield return new object[] { true, checkBoxes, true, false, View.List, CreateImageListNonEmpty(), 0, 0 }; 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 }; 3594yield return new object[] { true, checkBoxes, autoArrange, true, View.Details, null, 0, 0 }; 3595yield return new object[] { true, checkBoxes, autoArrange, true, View.Details, new ImageList(), 0, 0 }; 3596yield return new object[] { true, checkBoxes, autoArrange, true, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3597yield return new object[] { true, checkBoxes, autoArrange, true, View.LargeIcon, null, 0, 0 }; 3598yield return new object[] { true, checkBoxes, autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3599yield return new object[] { true, checkBoxes, autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3600yield return new object[] { true, checkBoxes, autoArrange, true, View.List, null, 0, 0 }; 3601yield return new object[] { true, checkBoxes, autoArrange, true, View.List, new ImageList(), 0, 0 }; 3602yield return new object[] { true, checkBoxes, autoArrange, true, View.List, 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 }; 3608yield return new object[] { true, checkBoxes, false, false, View.Details, null, 0, 0 }; 3609yield return new object[] { true, checkBoxes, false, false, View.Details, new ImageList(), 0, 0 }; 3610yield return new object[] { true, checkBoxes, false, false, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3611yield return new object[] { true, checkBoxes, false, false, View.LargeIcon, null, 0, 0 }; 3612yield return new object[] { true, checkBoxes, false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3613yield return new object[] { true, checkBoxes, false, false, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3614yield return new object[] { true, checkBoxes, false, false, View.List, null, 0, 0 }; 3615yield return new object[] { true, checkBoxes, false, false, View.List, new ImageList(), 0, 0 }; 3616yield return new object[] { true, checkBoxes, false, false, View.List, 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 }; 3622yield return new object[] { true, false, true, false, View.Tile, null, 0, 0 }; 3623yield return new object[] { true, false, true, false, View.Tile, new ImageList(), 0, 0 }; 3624yield return new object[] { true, false, true, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3626yield return new object[] { true, false, false, false, View.Tile, null, 0, 0 }; 3627yield return new object[] { true, false, false, false, View.Tile, new ImageList(), 0, 0 }; 3628yield return new object[] { true, false, false, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3631yield return new object[] { false, true, true, false, View.Details, null, 0, 0 }; 3632yield return new object[] { false, true, true, false, View.Details, new ImageList(), 1, 1 }; 3633yield return new object[] { false, true, true, false, View.Details, CreateImageListNonEmpty(), 1, 1 }; 3634yield return new object[] { false, true, true, false, View.LargeIcon, null, 0, 0 }; 3635yield return new object[] { false, true, true, false, View.LargeIcon, new ImageList(), 3, 1 }; 3636yield return new object[] { false, true, true, false, View.LargeIcon, CreateImageListNonEmpty(), 3, 1 }; 3637yield return new object[] { false, true, true, false, View.List, null, 0, 0 }; 3638yield return new object[] { false, true, true, false, View.List, new ImageList(), 1, 1 }; 3639yield return new object[] { false, true, true, false, View.List, CreateImageListNonEmpty(), 1, 1 }; 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 }; 3646yield return new object[] { false, true, autoArrange, true, View.Details, null, 0, 0 }; 3647yield return new object[] { false, true, autoArrange, true, View.Details, new ImageList(), 1, 1 }; 3648yield return new object[] { false, true, autoArrange, true, View.Details, CreateImageListNonEmpty(), 1, 1 }; 3649yield return new object[] { false, true, autoArrange, true, View.LargeIcon, null, 0, 0 }; 3650yield return new object[] { false, true, autoArrange, true, View.LargeIcon, new ImageList(), 1, 1 }; 3651yield return new object[] { false, true, autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 1, 1 }; 3652yield return new object[] { false, true, autoArrange, true, View.List, null, 0, 0 }; 3653yield return new object[] { false, true, autoArrange, true, View.List, new ImageList(), 1, 1 }; 3654yield return new object[] { false, true, autoArrange, true, View.List, CreateImageListNonEmpty(), 1, 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 }; 3660yield return new object[] { false, true, false, false, View.Details, null, 0, 0 }; 3661yield return new object[] { false, true, false, false, View.Details, new ImageList(), 1, 1 }; 3662yield return new object[] { false, true, false, false, View.Details, CreateImageListNonEmpty(), 1, 1 }; 3663yield return new object[] { false, true, false, false, View.LargeIcon, null, 0, 0 }; 3664yield return new object[] { false, true, false, false, View.LargeIcon, new ImageList(), 1, 1 }; 3665yield return new object[] { false, true, false, false, View.LargeIcon, CreateImageListNonEmpty(), 1, 1 }; 3666yield return new object[] { false, true, false, false, View.List, null, 0, 0 }; 3667yield return new object[] { false, true, false, false, View.List, new ImageList(), 1, 1 }; 3668yield return new object[] { false, true, false, false, View.List, 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 }; 3674yield return new object[] { false, false, true, false, View.Details, null, 0, 0 }; 3675yield return new object[] { false, false, true, false, View.Details, new ImageList(), 0, 0 }; 3676yield return new object[] { false, false, true, false, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3677yield return new object[] { false, false, true, false, View.LargeIcon, null, 0, 0 }; 3678yield return new object[] { false, false, true, false, View.LargeIcon, new ImageList(), 1, 0 }; 3679yield return new object[] { false, false, true, false, View.LargeIcon, CreateImageListNonEmpty(), 1, 0 }; 3680yield return new object[] { false, false, true, false, View.List, null, 0, 0 }; 3681yield return new object[] { false, false, true, false, View.List, new ImageList(), 0, 0 }; 3682yield return new object[] { false, false, true, false, View.List, CreateImageListNonEmpty(), 0, 0 }; 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 }; 3686yield return new object[] { false, false, true, false, View.Tile, null, 0, 0 }; 3687yield return new object[] { false, false, true, false, View.Tile, new ImageList(), 0, 0 }; 3688yield return new object[] { false, false, true, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3692yield return new object[] { false, false, autoArrange, true, View.Details, null, 0, 0 }; 3693yield return new object[] { false, false, autoArrange, true, View.Details, new ImageList(), 0, 0 }; 3694yield return new object[] { false, false, autoArrange, true, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3695yield return new object[] { false, false, autoArrange, true, View.LargeIcon, null, 0, 0 }; 3696yield return new object[] { false, false, autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3697yield return new object[] { false, false, autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3698yield return new object[] { false, false, autoArrange, true, View.List, null, 0, 0 }; 3699yield return new object[] { false, false, autoArrange, true, View.List, new ImageList(), 0, 0 }; 3700yield return new object[] { false, false, autoArrange, true, View.List, CreateImageListNonEmpty(), 0, 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 }; 3706yield return new object[] { false, false, false, false, View.Details, null, 0, 0 }; 3707yield return new object[] { false, false, false, false, View.Details, new ImageList(), 0, 0 }; 3708yield return new object[] { false, false, false, false, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3709yield return new object[] { false, false, false, false, View.LargeIcon, null, 0, 0 }; 3710yield return new object[] { false, false, false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3711yield return new object[] { false, false, false, false, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3712yield return new object[] { false, false, false, false, View.List, null, 0, 0 }; 3713yield return new object[] { false, false, false, false, View.List, new ImageList(), 0, 0 }; 3714yield return new object[] { false, false, false, false, View.List, 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 }; 3718yield return new object[] { false, false, false, false, View.Tile, null, 0, 0 }; 3719yield return new object[] { false, false, false, false, View.Tile, new ImageList(), 0, 0 }; 3720yield return new object[] { false, false, false, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3725public void ListView_StateImageList_SetWithHandle_GetReturnsExpected(bool useCompatibleStateImageBehavior, bool checkBoxes, bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount, int expectedCreatedCallCount) 3764yield return new object[] { true, checkBoxes, true, false, View.Details, null, 0, 0 }; 3765yield return new object[] { true, checkBoxes, true, false, View.Details, new ImageList(), 0, 0 }; 3766yield return new object[] { true, checkBoxes, true, false, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3767yield return new object[] { true, checkBoxes, true, false, View.LargeIcon, null, 0, 0 }; 3768yield return new object[] { true, checkBoxes, true, false, View.LargeIcon, new ImageList(), 0, 0 }; 3769yield return new object[] { true, checkBoxes, true, false, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3770yield return new object[] { true, checkBoxes, true, false, View.List, null, 0, 0 }; 3771yield return new object[] { true, checkBoxes, true, false, View.List, new ImageList(), 0, 0 }; 3772yield return new object[] { true, checkBoxes, true, false, View.List, 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 }; 3779yield return new object[] { true, checkBoxes, autoArrange, true, View.Details, null, 0, 0 }; 3780yield return new object[] { true, checkBoxes, autoArrange, true, View.Details, new ImageList(), 0, 0 }; 3781yield return new object[] { true, checkBoxes, autoArrange, true, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3782yield return new object[] { true, checkBoxes, autoArrange, true, View.LargeIcon, null, 0, 0 }; 3783yield return new object[] { true, checkBoxes, autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3784yield return new object[] { true, checkBoxes, autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3785yield return new object[] { true, checkBoxes, autoArrange, true, View.List, null, 0, 0 }; 3786yield return new object[] { true, checkBoxes, autoArrange, true, View.List, new ImageList(), 0, 0 }; 3787yield return new object[] { true, checkBoxes, autoArrange, true, View.List, 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 }; 3793yield return new object[] { true, checkBoxes, false, false, View.Details, null, 0, 0 }; 3794yield return new object[] { true, checkBoxes, false, false, View.Details, new ImageList(), 0, 0 }; 3795yield return new object[] { true, checkBoxes, false, false, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3796yield return new object[] { true, checkBoxes, false, false, View.LargeIcon, null, 0, 0 }; 3797yield return new object[] { true, checkBoxes, false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3798yield return new object[] { true, checkBoxes, false, false, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3799yield return new object[] { true, checkBoxes, false, false, View.List, null, 0, 0 }; 3800yield return new object[] { true, checkBoxes, false, false, View.List, new ImageList(), 0, 0 }; 3801yield return new object[] { true, checkBoxes, false, false, View.List, 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 }; 3807yield return new object[] { true, false, true, false, View.Tile, null, 0, 0 }; 3808yield return new object[] { true, false, true, false, View.Tile, new ImageList(), 0, 0 }; 3809yield return new object[] { true, false, true, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3811yield return new object[] { true, false, false, false, View.Tile, null, 0, 0 }; 3812yield return new object[] { true, false, false, false, View.Tile, new ImageList(), 0, 0 }; 3813yield return new object[] { true, false, false, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3816yield return new object[] { false, true, true, false, View.Details, null, 1, 1 }; 3817yield return new object[] { false, true, true, false, View.Details, new ImageList(), 1, 1 }; 3818yield return new object[] { false, true, true, false, View.Details, CreateImageListNonEmpty(), 1, 1 }; 3819yield return new object[] { false, true, true, false, View.LargeIcon, null, 3, 1 }; 3820yield return new object[] { false, true, true, false, View.LargeIcon, new ImageList(), 3, 1 }; 3821yield return new object[] { false, true, true, false, View.LargeIcon, CreateImageListNonEmpty(), 3, 1 }; 3822yield return new object[] { false, true, true, false, View.List, null, 1, 1 }; 3823yield return new object[] { false, true, true, false, View.List, new ImageList(), 1, 1 }; 3824yield return new object[] { false, true, true, false, View.List, CreateImageListNonEmpty(), 1, 1 }; 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 }; 3831yield return new object[] { false, true, autoArrange, true, View.Details, null, 1, 1 }; 3832yield return new object[] { false, true, autoArrange, true, View.Details, new ImageList(), 1, 1 }; 3833yield return new object[] { false, true, autoArrange, true, View.Details, CreateImageListNonEmpty(), 1, 1 }; 3834yield return new object[] { false, true, autoArrange, true, View.LargeIcon, null, 1, 1 }; 3835yield return new object[] { false, true, autoArrange, true, View.LargeIcon, new ImageList(), 1, 1 }; 3836yield return new object[] { false, true, autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 1, 1 }; 3837yield return new object[] { false, true, autoArrange, true, View.List, null, 1, 1 }; 3838yield return new object[] { false, true, autoArrange, true, View.List, new ImageList(), 1, 1 }; 3839yield return new object[] { false, true, autoArrange, true, View.List, CreateImageListNonEmpty(), 1, 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 }; 3845yield return new object[] { false, true, false, false, View.Details, null, 1, 1 }; 3846yield return new object[] { false, true, false, false, View.Details, new ImageList(), 1, 1 }; 3847yield return new object[] { false, true, false, false, View.Details, CreateImageListNonEmpty(), 1, 1 }; 3848yield return new object[] { false, true, false, false, View.LargeIcon, null, 1, 1 }; 3849yield return new object[] { false, true, false, false, View.LargeIcon, new ImageList(), 1, 1 }; 3850yield return new object[] { false, true, false, false, View.LargeIcon, CreateImageListNonEmpty(), 1, 1 }; 3851yield return new object[] { false, true, false, false, View.List, null, 1, 1 }; 3852yield return new object[] { false, true, false, false, View.List, new ImageList(), 1, 1 }; 3853yield return new object[] { false, true, false, false, View.List, 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 }; 3859yield return new object[] { false, false, true, false, View.Details, null, 0, 0 }; 3860yield return new object[] { false, false, true, false, View.Details, new ImageList(), 0, 0 }; 3861yield return new object[] { false, false, true, false, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3862yield return new object[] { false, false, true, false, View.LargeIcon, null, 1, 0 }; 3863yield return new object[] { false, false, true, false, View.LargeIcon, new ImageList(), 1, 0 }; 3864yield return new object[] { false, false, true, false, View.LargeIcon, CreateImageListNonEmpty(), 1, 0 }; 3865yield return new object[] { false, false, true, false, View.List, null, 0, 0 }; 3866yield return new object[] { false, false, true, false, View.List, new ImageList(), 0, 0 }; 3867yield return new object[] { false, false, true, false, View.List, CreateImageListNonEmpty(), 0, 0 }; 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 }; 3871yield return new object[] { false, false, true, false, View.Tile, null, 0, 0 }; 3872yield return new object[] { false, false, true, false, View.Tile, new ImageList(), 0, 0 }; 3873yield return new object[] { false, false, true, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3877yield return new object[] { false, false, autoArrange, true, View.Details, null, 0, 0 }; 3878yield return new object[] { false, false, autoArrange, true, View.Details, new ImageList(), 0, 0 }; 3879yield return new object[] { false, false, autoArrange, true, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3880yield return new object[] { false, false, autoArrange, true, View.LargeIcon, null, 0, 0 }; 3881yield return new object[] { false, false, autoArrange, true, View.LargeIcon, new ImageList(), 0, 0 }; 3882yield return new object[] { false, false, autoArrange, true, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3883yield return new object[] { false, false, autoArrange, true, View.List, null, 0, 0 }; 3884yield return new object[] { false, false, autoArrange, true, View.List, new ImageList(), 0, 0 }; 3885yield return new object[] { false, false, autoArrange, true, View.List, CreateImageListNonEmpty(), 0, 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 }; 3891yield return new object[] { false, false, false, false, View.Details, null, 0, 0 }; 3892yield return new object[] { false, false, false, false, View.Details, new ImageList(), 0, 0 }; 3893yield return new object[] { false, false, false, false, View.Details, CreateImageListNonEmpty(), 0, 0 }; 3894yield return new object[] { false, false, false, false, View.LargeIcon, null, 0, 0 }; 3895yield return new object[] { false, false, false, false, View.LargeIcon, new ImageList(), 0, 0 }; 3896yield return new object[] { false, false, false, false, View.LargeIcon, CreateImageListNonEmpty(), 0, 0 }; 3897yield return new object[] { false, false, false, false, View.List, null, 0, 0 }; 3898yield return new object[] { false, false, false, false, View.List, new ImageList(), 0, 0 }; 3899yield return new object[] { false, false, false, false, View.List, 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 }; 3903yield return new object[] { false, false, false, false, View.Tile, null, 0, 0 }; 3904yield return new object[] { false, false, false, false, View.Tile, new ImageList(), 0, 0 }; 3905yield return new object[] { false, false, false, false, View.Tile, CreateImageListNonEmpty(), 0, 0 }; 3911public void ListView_StateImageList_SetWithHandleWithNonNullOldValue_GetReturnsExpected(bool useCompatibleStateImageBehavior, bool checkBoxes, bool autoArrange, bool virtualMode, View view, ImageList value, int expectedInvalidatedCallCount, int expectedCreatedCallCount) 4299foreach (View view in Enum.GetValues(typeof(View))) 4319public void ListView_OnSelectedIndexChanged_Invoke(View view, bool showGroups, bool focused, bool selected, int expectedCallCount) 4348foreach (View view in Enum.GetValues(typeof(View))) 4351if (view == View.Tile) 4374public void ListView_OnSelectedIndexChanged_VirtualMode_Invoke(View view, bool showGroups, bool focused, bool selected, int expectedCallCount) 4443foreach (View view in Enum.GetValues(typeof(View))) 4446if (view == View.Tile) 4463public void ListView_Checkboxes_VirtualMode_Disabling_Succeeds(View view, bool showGroups, bool useCompatibleStateImageBehavior) 4688foreach (View view in Enum.GetValues(typeof(View))) 4691if (virtualMode && view == View.Tile) 4709public void ListView_SelectedIndexies_Contains_Invoke_ReturnExpected(View view, bool showGroups, bool createHandle, bool virtualMode) 4754foreach (View view in Enum.GetValues(typeof(View))) 4757if (virtualMode && view == View.Tile) 4784public void ListView_OnGotFocus_Invoke(View view, bool virtualMode, bool showGroups, bool createHandle, bool focused, int expectedCount) 5035listView.View = View.SmallIcon; 5091listView.View = View.SmallIcon; 5134[InlineData(View.Details)] 5135[InlineData(View.LargeIcon)] 5136[InlineData(View.List)] 5137[InlineData(View.SmallIcon)] 5138[InlineData(View.Tile)] 5139public void ListView_AnnounceColumnHeader_DoesNotWork_WithoutHandle(View view) 5161[InlineData(View.Details)] 5162[InlineData(View.LargeIcon)] 5163[InlineData(View.List)] 5164[InlineData(View.SmallIcon)] 5165[InlineData(View.Tile)] 5166public void ListView_AnnounceColumnHeader_DoesNotWork_WithoutHeader(View view) 5186[InlineData(View.Details)] 5187[InlineData(View.LargeIcon)] 5188[InlineData(View.List)] 5189[InlineData(View.SmallIcon)] 5190[InlineData(View.Tile)] 5191public void ListView_AnnounceColumnHeader_DoesNotWork_InvalidPoint(View view) 5219View = View.Details 5319foreach (View view in Enum.GetValues(typeof(View))) 5324if (view == View.Tile) 5342public void ListView_OnSelectedIndexChanged_DoesNotInvoke_RaiseAutomationEvent_SecondTime(View view, bool virtualMode, bool showGroups, bool withinGroup) 5365foreach (View view in Enum.GetValues(typeof(View))) 5370if (view == View.Tile) 5395View view, 5424View = View.Details, 5496foreach (View view in Enum.GetValues(typeof(View))) 5507foreach (View view in Enum.GetValues(typeof(View))) 5510if (view == View.Tile) 5524public void ListView_Remove_NotSelectedItems(View view, bool showGroups) 5556public void ListView_Remove_SelectedItems(View view, bool showGroups) 5586public void ListView_Remove_NotCheckedItems(View view, bool showGroups) 5616public void ListView_Remove_CheckedItems(View view, bool showGroups) 5646public void ListView_Remove_Group_WithNotSelectedItems(View view, bool showGroups) 5684public void ListView_Remove_Group_WithSelectedItems(View view, bool showGroups) 5721public void ListView_Remove_Group_WithNotCheckedItems(View view, bool showGroups) 5757public void ListView_Remove_Group_WithCheckedItems(View view, bool showGroups) 6080protected override View View => View.List; 6174private SubListView GetSubListViewWithData(View view, bool virtualMode, bool showGroups, bool withinGroup, bool createControl)
System.Windows.Forms.UI.IntegrationTests (4)
ListViewTests.cs (4)
30InitializeItems(listView, View.Details, virtualModeEnabled, checkBoxesEnabled); 486InitializeItems(listView, View.Details, virtualModeEnabled: false, checkBoxesEnabled: true); 515private void InitializeItems(ListView listView, View view, bool virtualModeEnabled, bool checkBoxesEnabled) 548listView.View = View.Tile;
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
54listView1.View = View.Tile;
WinFormsControlsTest (4)
ListViewTest.cs (3)
16listView1.View = View.Tile; 60View = View.Details, 237listView1.View = View.LargeIcon;
MultipleControls.cs (1)
25View = View.Details,