Windows PropertyGrid格式 [英] windows propertygrid formatting

查看:63
本文介绍了Windows PropertyGrid格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想通过给定符号或在其中更改颜色或给定"*"来区分propertygrid中的某些属性(强制性).这样,用户就会知道必须输入这些属性值.我该怎么办?
如果有人已经做过这样的事情或对此有任何想法,请帮助我.

谢谢.

Hi,
I want to differenciate some properties(mandatory) in propertygrid from others by giving symbol or changing there color or giving ''*''. So that user will come to know that these property values must be entered. How can I do that?
If anyone has already done something like this or have any idea about it, then please help me.

Thanks.

推荐答案

我的一个应用程序使用了 GetProperties() [ GetProperties(Attribute []) [ System.ComponentModel.TypeDescriptor [ ^ ],这似乎是一种参考实现.
One of my applications uses the ICustomTypeDescriptor interface[^]. Use the GetProperties()[^] and GetProperties(Attribute[])[^] methods to provide your customized property names. Forward the other interface members to System.ComponentModel.TypeDescriptor[^], which seems to be some kind of reference implementation.


这篇关于Windows PropertyGrid格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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