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