.ListCount 点域
- Last UpdatedFeb 05, 2018
- 1 minute read
读取列表框或组合框中项目的数量。
类别
Windows 控件
语法
[ErrorNumber=]GetPropertyI("ControlName.ListCount", Tagname);
参数
ControlName
Windows 控件的名称。
Tagname
有效的标记名,包含列表中项目的整型计数。
附注
此属性仅在运行时可用。
数据类型
整型(只读)
适用范围
列表框与组合框。
示例
以下语句检索 ListBox_1 列表框中的项目数量,并将该值写入内存整型标记 MyListBoxCount 中。
GetPropertyI("ListBox_1.ListCount", MyListBoxCount);
另请参阅
GetPropertyI()、.ListIndex