将选中的列表框项目添加到数组 [英] Add checked list box items to array

查看:113
本文介绍了将选中的列表框项目添加到数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请注意以下事项.

我想将CheckedListBox项目添加到数组.
我试图将它们添加到ArrayList,然后将它们添加到数组.这种方法好吗?还有其他方法吗?

请帮忙.

Please explain me following matter.

I want to add CheckedListBox items to an array.
I am trying to add them to ArrayList and then get them to array. Is this approach fine? Is there any other way to do it?

Please help.

推荐答案

为什么需要数组? ArrayList是一个类似于数组的集合.它还有一个ToArray()方法,该方法将集合作为数组返回.
Why do you need an array? ArrayList is a collection just like an array. It also has a method, ToArray() that returns the collection as an array.


这篇关于将选中的列表框项目添加到数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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