我想根据传递给表单构造函数的项目填充 CheckedListBox(在本例中,列表 <int
>)。
我的框架代码是:
foreach (int platypus in listPlatypi)
{
userFriendlyPlatypusName = ExpandFromPlatypusID(platypus);
// I want to store a verbose string in an Item of the CheckedListBox, something like:
// Item item = new Item(userFriendlyPlatypusName); // what data type should "Item" be?
CheckedListBox1.Add(item);
}
最佳答案
关于c# - 如何动态填充 CheckedListBox?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11564676/