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