Text
返回或设置ListViewRow的标题。
如果ListView有多列内容,那么Text返回或设置的就是第一列的内容。
示例
Dim
lvw As
WinForm.ListView
= e.Form.Controls("ListView1")
Dim
nms() As
String =
{"张三","李四","王五","赵六"}
For
Each
nm
As
String
In
nms
Dim
vr
As
WinForm.ListViewRow
=
lvw.Rows.Add()
vr.Text
= nm
'设置行标题
vr.Name
= nm
'设置行的名称
Next
lvw.Rows("张三").Text
= "张经理"
'修改张三这行的标题