10 writes to Text
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
819set => SubItems[0].Text = value;
System.Windows.Forms.Tests (8)
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\ListViewSubItemTests.cs (4)
506Text = value 511subItem.Text = value; 521Text = value 526subItem.Text = value;
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
559listViewItem.SubItems.Add(new ListViewItem.ListViewSubItem() { Text = $"Test SubItem{i}" });
46 references to Text
System.Windows.Forms (17)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
104Size textSize = TextRenderer.MeasureText(subItem.Text, subItem.Font);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
137string text = ItemIndex == -1 ? Item!.Text : SubItem!.Text;
System\Windows\Forms\Controls\ListView\ListView.cs (5)
3334if (string.Equals(text, listViewSubItem.Text, StringComparison.OrdinalIgnoreCase)) 3339if (isPrefixSearch && CultureInfo.CurrentCulture.CompareInfo.IsPrefix(listViewSubItem.Text, text, CompareOptions.IgnoreCase)) 4212SetItemText(insertIndex, nItem, li.SubItems[nItem].Text, ref lvItem); 4927SetItemText(i, j, Items[i].SubItems[j].Text, ref item); 6770text = lvItem.SubItems[dispInfo->item.iSubItem].Text; // we want the sub item
System\Windows\Forms\Controls\ListView\ListViewItem.cs (4)
816return _subItems[0].Text; 892subItem.Text, 1332_listView.SetItemText(itemIndex, index, _subItems[index].Text); 1339_listView.SetItemText(itemIndex, i, _subItems[i].Text);
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
128textWidth = Math.Max(TextRenderer.MeasureText(subItem.Text, subItem.Font).Width, textWidth);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (2)
15[DefaultProperty(nameof(Text))] 262public override string ToString() => $"ListViewSubItem: {{{Text}}}";
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
92public override string? Name => base.Name ?? OwningSubItem?.Text ?? string.Empty;
System\Windows\Forms\Controls\ListView\ListViewSubItemConverter.cs (2)
47item.Text, 57return new InstanceDescriptor(ctor, new object?[] { null, item.Text }, true);
System.Windows.Forms.Tests (29)
SerializableTypesTests.cs (2)
187Assert.Equal("Item1", item.Text); 232Assert.Equal("SubItem1", result.Text);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
200? TextRenderer.MeasureText(listViewSubItem.Text, listViewSubItem.Font).Width
System\Windows\Forms\ListViewItemTests.cs (11)
34Assert.Empty(subItem.Text); 374Assert.Same(expectedText, subItem.Text); 412Assert.Same(expectedText, subItem.Text); 638Assert.Same(expectedText, subItem.Text); 676Assert.Equal(expectedText, subItem.Text); 714Assert.Equal(expectedText, subItem.Text); 751Assert.Empty(subItem.Text); 820Assert.Equal(expectedText, subItem.Text); 1058Assert.Empty(subItem.Text); 1066Assert.Equal(expected[i].Text, actual[i].Text);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (6)
251Assert.Equal(expectedText, subItem.Text); 272Assert.Same(expectedText, subItem.Text); 381Assert.Equal("text1", collection[0].Text); 382Assert.Equal("text2", collection[1].Text); 402Assert.Equal("text1", collection[0].Text); 406Assert.Equal("text2", collection[1].Text);
System\Windows\Forms\ListViewSubItemTests.cs (9)
23Assert.Empty(subItem.Text); 49Assert.Equal(expectedText, subItem.Text); 75Assert.Equal(expectedText, subItem.Text); 508Assert.Equal(expected, subItem.Text); 512Assert.Equal(expected, subItem.Text); 523Assert.Equal(expected, subItem.Text); 527Assert.Equal(expected, subItem.Text); 595Assert.Equal(subItem.Text, result.Text);