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