在Designer Propertygrid中将用户控件自定义属性分组 [英] grouping usercontrol custom properties in Designer Propertygrid
本文介绍了在Designer Propertygrid中将用户控件自定义属性分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用usercontrols,我已经创建了自己的控件属性.现在,我想在设计器网格中将我自己的自定义属性单独分组.
问候
Hi Everyone,
I am working with usercontrols, i have created my own control properties. Now i want to group my own custom properties separately in designer grid.
Regards
推荐答案
使用Category属性标记属性,如下所示:
Flag your properties with the Category attribute, like so:
[Category("Custom")]
public String MyProp {
....
}
现在,属性MyProp
将与标记为自定义"的其他属性组合在一起.
The property MyProp
will now be grouped with other properties flagged as "Custom".
这篇关于在Designer Propertygrid中将用户控件自定义属性分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文