138 references to ListViewSubItem
System.Windows.Forms.Tests (137)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (4)
492listView.Items[0].SubItems.Add(new ListViewSubItem() { Text = $"SubItem 0" }); 493listView.Items[1].SubItems.Add(new ListViewSubItem() { Text = $"SubItem 0" }); 1150listItem1.SubItems.Add(new ListViewSubItem() { Text = $"SubItem {i}" }); 1151listItem2.SubItems.Add(new ListViewSubItem() { Text = $"SubItem {i}" });
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (9)
40item.SubItems.AddRange(new ListViewSubItem[] { new(), new(), new(), new(), new() }); 72item.SubItems.AddRange(new ListViewSubItem[] { new(), new(), new(), new() });
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (9)
1051ListViewItem.ListViewSubItem listViewSubItem = new(); 1063ListViewItem.ListViewSubItem listViewSubItem = new(); 1079ListViewItem.ListViewSubItem listViewSubItem = new(); 1095ListViewItem.ListViewSubItem listViewSubItem = new(); 1111ListViewItem.ListViewSubItem listViewSubItem = new(); 1127ListViewItem.ListViewSubItem listViewSubItem = new(); 1143ListViewItem.ListViewSubItem listViewSubItem = new(); 1159ListViewItem.ListViewSubItem listViewSubItem = new(); 1165listView.Items[0].SubItems[subItemIndex] = new ListViewItem.ListViewSubItem();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
229new ListViewItem.ListViewSubItem()
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (2)
92subItemsItem.SubItems.Add(new ListViewItem.ListViewSubItem()); 100fullRowSelectListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem());
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (19)
12yield return new object[] { Rectangle.Empty, null, new ListViewItem.ListViewSubItem(), -2, -2, null, ListViewItemStates.Checked - 1 }; 13yield return new object[] { Rectangle.Empty, new ListViewItem(), new ListViewItem.ListViewSubItem(), -2, -2, null, ListViewItemStates.Checked - 1 }; 15yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, -1, new ColumnHeader(), ListViewItemStates.Checked }; 16yield return new object[] { new Rectangle(-1, 2, -3, -4), new ListViewItem(), new ListViewItem.ListViewSubItem(), 0, 0, new ColumnHeader(), ListViewItemStates.Focused }; 17yield return new object[] { new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), 1, 2, new ColumnHeader(), ListViewItemStates.Checked }; 41Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewSubItemEventArgs(null, new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default)); 49Assert.Throws<ArgumentNullException>("item", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default)); 98yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, null, ListViewItemStates.Default }; 99yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, null, ListViewItemStates.Checked }; 100yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, null, ListViewItemStates.Focused }; 101yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Default }; 102yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Checked }; 103yield return new object[] { new Rectangle(-1, -2, -3, -4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Focused }; 104yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, null, ListViewItemStates.Default }; 105yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, null, ListViewItemStates.Checked }; 106yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, null, ListViewItemStates.Focused }; 107yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Default }; 108yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Checked }; 109yield return new object[] { new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), 0, new ColumnHeader(), ListViewItemStates.Focused };
System\Windows\Forms\ListView.ListViewItemCollectionTests.cs (3)
28var grandchild1 = new ListViewItem.ListViewSubItem 32var grandchild2 = new ListViewItem.ListViewSubItem 36var grandchild3 = new ListViewItem.ListViewSubItem
System\Windows\Forms\ListViewHitTestInfoTests.cs (1)
12yield return new object[] { new ListViewItem(), new ListViewItem.ListViewSubItem(), ListViewHitTestLocations.None - 1 };
System\Windows\Forms\ListViewSubItemCollectionTests.cs (70)
44var subItem = new ListViewItem.ListViewSubItem(); 57new ListViewItem.ListViewSubItem() 68new ListViewItem.ListViewSubItem() 71var subItem = new ListViewItem.ListViewSubItem(); 84new ListViewItem.ListViewSubItem() 86Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new ListViewItem.ListViewSubItem()); 95new ListViewItem.ListViewSubItem() 106var subItem = new ListViewItem.ListViewSubItem(); 119new ListViewItem.ListViewSubItem() 130new ListViewItem.ListViewSubItem() 133var subItem = new ListViewItem.ListViewSubItem(); 146new ListViewItem.ListViewSubItem() 173var subItem1 = new ListViewItem.ListViewSubItem(); 174var subItem2 = new ListViewItem.ListViewSubItem 189var subItem = new ListViewItem.ListViewSubItem(); 202var subItem = new ListViewItem.ListViewSubItem(); 207Assert.Throws<InvalidOperationException>(() => collection.Add(new ListViewItem.ListViewSubItem())); 215var subItem = new ListViewItem.ListViewSubItem(); 232var subItem = new ListViewItem.ListViewSubItem(); 292var subItem = new ListViewItem.ListViewSubItem(); 427var subItem = new ListViewItem.ListViewSubItem(); 455var subItem = new ListViewItem.ListViewSubItem(); 459Assert.False(collection.Contains(new ListViewItem.ListViewSubItem())); 469Assert.False(collection.Contains(new ListViewItem.ListViewSubItem())); 485var subItem1 = new ListViewItem.ListViewSubItem(); 486var subItem2 = new ListViewItem.ListViewSubItem 511var subItem = new ListViewItem.ListViewSubItem(); 515Assert.False(collection.Contains(new ListViewItem.ListViewSubItem())); 526Assert.False(collection.Contains(new ListViewItem.ListViewSubItem())); 536var subItem = new ListViewItem.ListViewSubItem(); 540Assert.Equal(-1, collection.IndexOf(new ListViewItem.ListViewSubItem())); 550Assert.Equal(-1, collection.IndexOf(new ListViewItem.ListViewSubItem())); 566var subItem1 = new ListViewItem.ListViewSubItem(); 567var subItem2 = new ListViewItem.ListViewSubItem 596var subItem = new ListViewItem.ListViewSubItem(); 600Assert.Equal(-1, collection.IndexOf(new ListViewItem.ListViewSubItem())); 611Assert.Equal(-1, collection.IndexOf(new ListViewItem.ListViewSubItem())); 621var subItem = new ListViewItem.ListViewSubItem(); 622collection.Add(new ListViewItem.ListViewSubItem()); 636var subItem = new ListViewItem.ListViewSubItem(); 641Assert.Throws<InvalidOperationException>(() => collection.Add(new ListViewItem.ListViewSubItem())); 650new ListViewItem.ListViewSubItem() 670var subItem = new ListViewItem.ListViewSubItem(); 671collection.Add(new ListViewItem.ListViewSubItem()); 695Assert.Throws<ArgumentOutOfRangeException>("index", () => collection.Insert(index, new ListViewItem.ListViewSubItem())); 703var subItem = new ListViewItem.ListViewSubItem(); 725var subItem = new ListViewItem.ListViewSubItem(); 745var subItem = new ListViewItem.ListViewSubItem(); 757var subItem1 = new ListViewItem.ListViewSubItem(); 758var subItem2 = new ListViewItem.ListViewSubItem(); 759var subItem3 = new ListViewItem.ListViewSubItem(); 760var subItem4 = new ListViewItem.ListViewSubItem(); 807new ListViewItem.ListViewSubItem() 834var subItem = new ListViewItem.ListViewSubItem 857var subItem = new ListViewItem.ListViewSubItem(); 879ListViewItem.ListViewSubItem subItem = new(); 912ListViewItem.ListViewSubItem subItem1 = new(); 913ListViewItem.ListViewSubItem subItem2 = new(); 950ListViewItem.ListViewSubItem subItem1 = new(); 951ListViewItem.ListViewSubItem subItem2 = new(); 973ListViewItem.ListViewSubItem subItem = new(); 986ListViewItem.ListViewSubItem subItem1 = new(); 987ListViewItem.ListViewSubItem subItem2 = new(); 989ListViewItem.ListViewSubItem oldSubItem2 = new(); 1018ListViewItem.ListViewSubItem subItem = new(); 1036ListViewItem.ListViewSubItem subItem = new(); 1052ListViewItem.ListViewSubItem subItem1 = new(); 1053ListViewItem.ListViewSubItem subItem2 = new(); 1075ListViewItem.ListViewSubItem subItem = new(); 1094ListViewItem.ListViewSubItem subItem = new();
System\Windows\Forms\ListViewSubItemConverterTests.cs (2)
105Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new ListViewItem.ListViewSubItem(), destinationType)); 119var item = new ListViewItem.ListViewSubItem();
System\Windows\Forms\ListViewSubItemTests.cs (17)
16var subItem = new ListViewItem.ListViewSubItem(); 123var subItem = new ListViewItem.ListViewSubItem(); 142var subItem = new ListViewItem.ListViewSubItem 172var subItem = new ListViewItem.ListViewSubItem(); 191var subItem = new ListViewItem.ListViewSubItem(); 260var subItem = new ListViewItem.ListViewSubItem(); 273var subItem = new ListViewItem.ListViewSubItem 297var subItem = new ListViewItem.ListViewSubItem(); 316var subItem = new ListViewItem.ListViewSubItem(); 372var subItem = new ListViewItem.ListViewSubItem(); 393var subItem = new ListViewItem.ListViewSubItem 423var subItem = new ListViewItem.ListViewSubItem(); 442var subItem = new ListViewItem.ListViewSubItem(); 473var subItem = new ListViewItem.ListViewSubItem 488var subItem = new ListViewItem.ListViewSubItem 519var subItem = new ListViewItem.ListViewSubItem 571yield return new object[] { new ListViewItem.ListViewSubItem() };
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
559listViewItem.SubItems.Add(new ListViewItem.ListViewSubItem() { Text = $"Test SubItem{i}" });