问题描述
我编写了一个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.
推荐答案
这篇关于如何在PropertyGrid中展开GridItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!