本文介绍了PropertyGrid属性和UItypeeditor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好 如果可以在属性属性中添加多个UIeditors,我想知道(和做)? 如何? 是否可以在属性类别属性中添加复选框?如何
Hi All I would like to know (and to do) if it's possible to add multiple UIeditors in property attribute? How? Is it possible to add checkbox to property category attribute? How
推荐答案您可以在属性上放置多个EditorAttributes,但属性表将只选择它相信的最后一个。它只允许多个用于继承目的,所以没有办法告诉它在设计时选择哪一个。 不,你不能添加一个复选框到category属性,它只是在设计时在属性网格中显示的名称。 如果你想在VS编辑器中扩展属性网格,那么你非常困难,但是如果你在运行时显示属性网格,那么你可以使用不同的属性网格控件,比如 Telerik [ ^ ] DevComponents [ ^ VisualHint [ ^ ] 或制作/自定义您自己的 [ ^ ] You can place multiple EditorAttributes on the property, but the property sheet will only pick the last one that it finds I believe. It only allows multiple for inheritance purposes, so there is no way to tell it which one to choose at design time. And no, you can't add a checkbox to the category attribute, its simply a name displayed in the property grid at design time. If you are trying to extend the property grid in the VS editor, then you are pretty stuck, but if you are showing the property grid at runtime, then you can use a different property grid control, like Telerik[^] DevComponents[^ VisualHint[^] Or make/customize your own[^]
你可以使用telrik rad属性网格但是需要使用多个属性编辑器。在单个编辑器中,你可以添加你想要的属性。你可以根据需要添加自定义属性。 谢谢 Anil Hi, you can use telrik rad property grid but what is the need of using multiple property editors. In single editor u can add no of properties which u want. u can add custom properties if u need. Thanks Anil
更多推荐
PropertyGrid属性和UItypeeditor
发布评论