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