listview.items.count是什么意思? [英] What is the meaning of listview.items.count?

查看:550
本文介绍了listview.items.count是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

listview.items.count?它是for循环吗?

listview.items.count? is it a for loop?

推荐答案

这是列表框中的项目数。

ListView.Items Property [ ^ ]是一个.NET集合,因此包含 Count属性 [ ^ ]告诉你当前有多少。



是的,你可以在一个循环中使用它,但是你也可以用它来做其他的事情。
It's the number of items in the Listbox.
The ListView.Items Property[^] is a .NET collection, and as such contains the Count property[^] to tell you how many there are at the current moment.

Yes, you can use it in a loop, but there are other things you might want to do with it as well.


对于数据表,你可以获得数量行使用:

dt.rows.count

在填充的列表视图中你可以使用

ListView.Items.Count



参考:



http://www.dreamincode.net/forums/topic/269486-counting-the-rows-of-listview/ [ ^ ]
For the datatable you can get the number of rows using:
dt.rows.count
And in the populated listview you could use
ListView.Items.Count

Ref to this:

http://www.dreamincode.net/forums/topic/269486-counting-the-rows-of-listview/[^]


这篇关于listview.items.count是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆