如何计算checkedlistbox C#中未取消项目的数量? [英] How can I count the uncheked items in checkedlistbox C#
本文介绍了如何计算checkedlistbox C#中未取消项目的数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此代码下面会对checkedListBox中的已检查项目进行计数。
我想计算未经检查的项目,
我尝试过:
this code bellow count the checked items in the checkedListBox.
I want to count the uncheked items ,
What I have tried:
int ChckedItems_Numbers = checkedListBox.CheckedItems.Count ;
推荐答案
获取所有项目的计数并减去已检查项目的计数。简单算术。
Get the count of all items and subtract the count of checked ones. Simple arithmetic.
这篇关于如何计算checkedlistbox C#中未取消项目的数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文