如何在PropertyGrid中展开GridItem [英] How to expand GridItem in a PropertyGrid

查看:165
本文介绍了如何在PropertyGrid中展开GridItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个Windows应用程序,窗体上有一个PropertyGrid,并且我在运行时成功实现了以下行以在窗体上显示PropertyGird:

I write a windows application, there is a PropertyGrid on form, and I successfully implement the following line at run time to display PropertyGird on form :

PropertyGrid1.SelectedObject = ThePropertySet;



另外,我可以编写一个TypeConverter类来显示下拉列表属性,因此可以在该属性的下拉列表中选择一个项目.

但是,我无法编写可扩展属性!我想拥有一个可扩展的属性以包含sub_properties,并且找不到一个针对该主题的清晰完整的示例,您能介绍一个供我参考吗?谢谢.



Plus, I can write a TypeConverter class to show a dropdown property, so I can select an item in the dropdown list for the property.

However, I can not write an expandable property ! I would like to have a property be expandable to include sub_properties, and I can not find a clearly and completely sample which focus on this topic, could you introduce one for my reference ? Thanks.

推荐答案

[ ^ ] CodeProject 文章可能非常有用. :)
This[^] CodeProject article might be very useful. :)


这篇关于如何在PropertyGrid中展开GridItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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