对象属性编辑器中实现像Size,Rectangle等可以展开的属性

     /// <summary>
        /// 获取上级设备
        /// </summary>
        [Browsable(true), TypeConverter(typeof(ExpandableObjectConverter))]
        public Device Parent
        {
            get { return parent; }
        }

只需要为属性设置“TypeConverter(typeof(ExpandableObjectConverter))”特征即可直接展开对象的所有属性

原文地址:https://www.cnblogs.com/mhsg/p/5053898.html