16 writes to Name
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
620
set => SubItems[0].
Name
= value;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (1)
34
item.
Name
= SR.ListViewSubItemBaseName + s_count++;
System.Windows.Forms.Tests (14)
System\Windows\Forms\ListView.ListViewItemCollectionTests.cs (3)
30
Name
= "name1"
34
Name
= "name2"
38
Name
= "name2"
System\Windows\Forms\ListViewSubItemCollectionTests.cs (6)
176
Name
= "text"
488
Name
= "text"
569
Name
= "text"
836
Name
= "text"
1113
oldSubItem.
Name
= "Test 1";
1114
ListViewItem.ListViewSubItem subItem = new(listViewItem, "Test 2") {
Name
= "Test 2" };
System\Windows\Forms\ListViewSubItemTests.cs (5)
460
Name
= value
465
subItem.
Name
= value;
475
Name
= value
480
subItem.
Name
= value;
572
yield return new object[] { new ListViewItem.ListViewSubItem(null, "header", Color.Red, Color.Blue, SystemFonts.MenuFont) {
Name
= "name", Tag = "tag" } };
14 references to Name
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
294
if (WindowsFormsUtils.SafeCompareStrings(listViewItems[i].SubItems[j].
Name
, key, ignoreCase: true))
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
617
return _subItems[0].
Name
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (2)
277
if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].
Name
, key, ignoreCase: true))
285
if (WindowsFormsUtils.SafeCompareStrings(this[i].
Name
, key, ignoreCase: true))
System.Windows.Forms.Tests (10)
System\Windows\Forms\ListViewItemTests.cs (2)
1065
Assert.Equal(expected[i].
Name
, actual[i].
Name
);
System\Windows\Forms\ListViewSubItemTests.cs (8)
21
Assert.Empty(subItem.
Name
);
47
Assert.Empty(subItem.
Name
);
73
Assert.Empty(subItem.
Name
);
462
Assert.Equal(expected, subItem.
Name
);
466
Assert.Equal(expected, subItem.
Name
);
477
Assert.Equal(expected, subItem.
Name
);
481
Assert.Equal(expected, subItem.
Name
);
593
Assert.Empty(result.
Name
);