17 writes to Text
System.Windows.Forms (5)
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6488Items[dispInfo->item.iItem].Text = text;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (4)
82Text = text; 178Text = text; 936newItem.Text = Text; 1194Text = info.GetString(nameof(Text));
System.Windows.Forms.Tests (7)
System\Windows\Forms\ListViewTests.cs (7)
4503Text = "First" 4507Text = "Second" 4534Text = "First" 4538Text = "Second" 4572Text = "First" 4576Text = "Second" 4580Text = "Third"
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
306Text = "View"
WinFormsControlsTest (4)
ListViewTest.cs (4)
155Text = "Item4", 168Text = "Item5", 195Text = "Item6", 254Text = Path.GetFileName(file),
55 references to Text
System.Windows.Forms (23)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
91TextRenderer.DrawText(Graphics, Item.Text, Item.Font, UpdateBounds(Bounds, drawText: true), Item.ForeColor, flags);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
137string text = ItemIndex == -1 ? Item!.Text : SubItem!.Text;
System\Windows\Forms\Controls\ListView\ListView.cs (5)
4013throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items)); 4040throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items)); 4179fixed (char* pText = li.Text) 4324SetItemText(item.Index, 0 /*subItemIndex*/, item.Text); 6760text = lvItem.Text; // we want the item
System\Windows\Forms\Controls\ListView\ListView.IconComparer.cs (4)
37return string.Compare(currentItem?.Text, nextItem?.Text, false, CultureInfo.CurrentCulture); 41return string.Compare(nextItem?.Text, currentItem?.Text, false, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
180throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text));
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
68throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(item));
System\Windows\Forms\Controls\ListView\ListViewItem.cs (7)
19[DefaultProperty(nameof(Text))] 936newItem.Text = Text; 1192if (entry.Name == nameof(Text)) 1194Text = info.GetString(nameof(Text)); 1266info.AddValue(nameof(Text), Text); 1307public override string ToString() => $"ListViewItem: {{{Text}}}";
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (2)
114new Size(Math.Min(TextRenderer.MeasureText(item.Text, item.Font).Width, itemBounds.Width), 123int textWidth = TextRenderer.MeasureText(item.Text, item.Font).Width;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
61public override string? Name => _owningItem.Text;
System.Windows.Forms.Tests (29)
SerializableTypesTests.cs (2)
151Assert.Equal("Item", item.Text); 183Assert.Equal("Item1", result.Text);
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
116Assert.Equal(listView.Items[0].Text, accessibilityObject.Name);
System\Windows\Forms\ListViewGroupTests.cs (3)
1350Assert.Equal(group.Items.Cast<ListViewItem>().Select(i => i.Text), result.Items.Cast<ListViewItem>().Select(i => i.Text)); 1413Assert.Equal("text", ((ListViewItem)info.GetValue("Item0", typeof(ListViewItem))).Text);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
184? TextRenderer.MeasureText(listViewItem.Text, listViewItem.Font).Width
System\Windows\Forms\ListViewItemTests.cs (22)
37Assert.Empty(item.Text); 75Assert.Same(expectedText, item.Text); 113Assert.Same(expectedText, item.Text); 151Assert.Same(expectedText, item.Text); 189Assert.Same(expectedText, item.Text); 226Assert.Same(expectedText, item.Text); 263Assert.Same(expectedText, item.Text); 301Assert.Same(expectedText, item.Text); 339Assert.Same(expectedText, item.Text); 377Assert.Same(expectedText, item.Text); 415Assert.Same(expectedText, item.Text); 452Assert.Same(expectedText, item.Text); 489Assert.Same(expectedText, item.Text); 527Assert.Same(expectedText, item.Text); 565Assert.Equal(expectedText, item.Text); 603Assert.Equal(expectedText, item.Text); 641Assert.Same(expectedText, item.Text); 679Assert.Equal(expectedText, item.Text); 717Assert.Equal(expectedText, item.Text); 754Assert.Empty(item.Text); 792Assert.Equal(expectedText, item.Text); 823Assert.Equal(expectedText, item.Text);
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
333Assert.Equal(listViewItem?.Text, data.Text);
WinFormsControlsTest (1)
ListViewTest.cs (1)
217MessageBox.Show(this, $"Click {clone.Text} in ListView3", "Click Event");