56 references to new
System.Windows.Forms (5)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
99_subItems.Add(new ListViewSubItem(this, items[i])); 190_subItems.Add(new ListViewSubItem(this, items[i])); 779_subItems = [new ListViewSubItem(this, string.Empty)];
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (2)
120ListViewSubItem item = new(_owner, text); 159_owner._subItems.Add(new ListViewSubItem(_owner, item));
System.Windows.Forms.Tests (51)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (5)
859ListViewItem.ListViewSubItem subItem = new(listViewItem, "Test subItem"); 916ListViewItem.ListViewSubItem listViewSubItem = new(listViewItem, "Test subItem"); 929ListViewItem.ListViewSubItem listViewSubItem = new(listViewItem, "Test subItem"); 944ListViewItem.ListViewSubItem listViewSubItem = new(listViewItem, "Test subItem"); 973ListViewItem.ListViewSubItem listViewSubItem = new(listViewItem, "Test subItem");
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
164ListViewSubItem subItem = new(item, "Test");
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
179listViewItem.SubItems.Add(new ListViewSubItem(listViewItem, new string('t', 10))); 194ListViewSubItem listViewSubItem = new(listViewItem, new string('t', 20));
System\Windows\Forms\ListViewItemConverterTests.cs (5)
51var subItem1 = new ListViewItem.ListViewSubItem(null, "text1"); 52var subItem2 = new ListViewItem.ListViewSubItem(null, "text2"); 53var subItem3 = new ListViewItem.ListViewSubItem(null, "text3") 57var subItem4 = new ListViewItem.ListViewSubItem(null, "text4") 61var subItem5 = new ListViewItem.ListViewSubItem(null, "text5")
System\Windows\Forms\ListViewItemTests.cs (9)
197yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, string.Empty, null, string.Empty, "text" }; 198yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, "imageKey", new ListViewGroup(), "imageKey", "text" }; 234yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, 1, null, "text" }; 235yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, -1, new ListViewGroup(), "text" }; 423yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, string.Empty, string.Empty, "text" }; 424yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, "imageKey", "imageKey", "text" }; 460yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, 1, "text" }; 461yield return new object[] { new ListViewItem.ListViewSubItem[] { new(null, "text") }, -1, "text" }; 1050AssertEqualListViewSubItem(expected?.Select(t => new ListViewItem.ListViewSubItem(null, t)).ToArray(), actual);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (16)
313var subItem1 = new ListViewItem.ListViewSubItem(null, "text1"); 314var subItem2 = new ListViewItem.ListViewSubItem(null, "text2"); 328var subItem1 = new ListViewItem.ListViewSubItem(null, "text1"); 329var subItem2 = new ListViewItem.ListViewSubItem(null, "text2"); 330var subItem3 = new ListViewItem.ListViewSubItem(null, "text3"); 331var subItem4 = new ListViewItem.ListViewSubItem(null, "text4"); 347var subItem1 = new ListViewItem.ListViewSubItem(null, "text1"); 348var subItem2 = new ListViewItem.ListViewSubItem(null, "text2"); 349var subItem3 = new ListViewItem.ListViewSubItem(null, "text3"); 350var subItem4 = new ListViewItem.ListViewSubItem(null, "text4"); 351var subItem5 = new ListViewItem.ListViewSubItem(null, "text5"); 352var subItem6 = new ListViewItem.ListViewSubItem(null, "text6"); 353var subItem7 = new ListViewItem.ListViewSubItem(null, "text7"); 354var subItem8 = new ListViewItem.ListViewSubItem(null, "text8"); 355var subItem9 = new ListViewItem.ListViewSubItem(null, "text8"); 1114ListViewItem.ListViewSubItem subItem = new(listViewItem, "Test 2") { Name = "Test 2" };
System\Windows\Forms\ListViewSubItemConverterTests.cs (1)
53new ListViewItem.ListViewSubItem(item, "text"),
System\Windows\Forms\ListViewSubItemTests.cs (12)
42var subItem = new ListViewItem.ListViewSubItem(owner, text); 88var subItem = new ListViewItem.ListViewSubItem(item, "text"); 103var subItem = new ListViewItem.ListViewSubItem(item, "text"); 210var subItem = new ListViewItem.ListViewSubItem(item, "text"); 224var subItem = new ListViewItem.ListViewSubItem(item, "text"); 239var subItem = new ListViewItem.ListViewSubItem(item, "text"); 337var subItem = new ListViewItem.ListViewSubItem(item, "text"); 352var subItem = new ListViewItem.ListViewSubItem(item, "text"); 458var subItem = new ListViewItem.ListViewSubItem(item, "text") 504var subItem = new ListViewItem.ListViewSubItem(item, "text") 540var subItem = new ListViewItem.ListViewSubItem(owner, "text"); 602var subItem = new ListViewItem.ListViewSubItem(null, text);