C#控件CheckListBox的使用
来源:互联网 发布:微喜帖制作软件 编辑:程序博客网 时间:2024/05/16 04:59
/// <summary> /// 添加项 /// </summary> public int AddItems(object value) { CheckListBox1.Items.Add(value); return CheckListBox1.Items.Count; } /// <summary> /// 删除项 /// </summary> public int RemoveItems(object value) { CheckListBox1.Items.Remove(value); return CheckListBox1.Items.Count; } /// <summary> /// 获取选中IP数组 /// </summary> /// <returns></returns> public String[] GetCheckedItem() { String[] strCheckedItems = new String[CheckListBox1.CheckedItems.Count]; for (int i = 0; i < CheckListBox1.CheckedItems.Count; i++) { if (CheckListBox1.GetItemChecked(i)) { strCheckedItems[i] = this.chklUpdateItem.GetItemText(chklUpdateItem.Items[i]); } } return strCheckedItems; } CheckListBox1.Items.Clear();//清空列表
0 0
- C#控件CheckListBox的使用
- CheckListBox控件的使用
- C#控件学习一:CheckListBox
- c# checklistbox的用法
- c# checklistbox的用法
- c# checklistbox的用法
- CheckListBox的使用(代码)
- ChecklistBox的使用总结
- C# checklistbox控件用法总结(怎样得到多选的值,以及动态加载数据)
- C# checklistbox控件用法总结(怎样得到多选的值,以及动态加载数据)
- C# checklistbox控件用法总结(怎样得到多选的值,以及动态加载数据)
- WinForm中CheckListBox控件的应用
- 制作一个CheckListBox控件
- checklistbox控件用法总结
- C# checkListBox绑定
- C# Checklistbox 用法
- checklistbox使用详解
- CheckListBox的一些用法!
- 如何查看linux操作系统是32位还是64位
- 使用gradle打包jar包
- Integer.MAX_VALUE+1=Integer.MIN_VALUE
- AngularJS 初始化指令- ng-init
- UML详解
- C#控件CheckListBox的使用
- 等价二叉树
- poj-1159-Palindrome
- HTML
- ROS学习(基于Ubuntu 15.04 和ROS Jade)第三章 ROS核心教程 之 7 理解ROS服务和参数
- 卷积计算
- 反射_反射、设置模式、JDK新特性总结
- 新人向 JAVA 24点简单程序
- Python 数据分析 数据挖掘 学习路径图