博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C# 自定义集合
阅读量:4668 次
发布时间:2019-06-09

本文共 674 字,大约阅读时间需要 2 分钟。

private CheckboxCollection _check_box_items;		/// 		/// 指定复选框按钮集合		/// 		[Category("7510skin-复选按钮组"),Description("指定复选按钮集合")]		[TypeConverter(typeof(System.ComponentModel.CollectionConverter))]		[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]		public CheckboxCollection CheckBoxItems		{			get			{				if (this._check_box_items == null)					this._check_box_items = new CheckboxCollection(this);				return this._check_box_items;			}		}

在控件定义一个集合属性,必须添加:

[TypeConverter(typeof(System.ComponentModel.CollectionConverter))]

[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]

 

转载于:https://www.cnblogs.com/qingtianhua/p/3691001.html

你可能感兴趣的文章
课堂练习--单元测试
查看>>
嵌入式 探讨父子线程、进程终止顺序不同产生的结果_skdkjxy_新浪博客
查看>>
【机器学习】如何成为当下合格的算法工程师
查看>>
vuex 学习总结及demo
查看>>
MySQL高可用架构故障自动转移插件MHA
查看>>
lnmp之nginx1.10.2安装
查看>>
recv send 阻塞和非阻塞
查看>>
网络丢包分析
查看>>
打印LIS
查看>>
剑指offer第2章学习(2)
查看>>
java后台验证码的生成
查看>>
Bootstrap辅助类
查看>>
vue项目的骨架及常用组件介绍
查看>>
Spring使用外部的配置文件
查看>>
ctype
查看>>
jsp 修饰 Request 及Response
查看>>
HDU 2389 Rain on your Parade / HUST 1164 4 Rain on your Parade(二分图的最大匹配)
查看>>
对象的类型转换P109
查看>>
sqlite 查询表和字段是否存在
查看>>
http => https 升级
查看>>