PropertyGrid属性和UItypeeditor

编程入门 行业动态 更新时间:2024-10-26 00:30:18
本文介绍了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

本文发布于:2023-11-12 12:51:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581543.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:属性   PropertyGrid   UItypeeditor

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!