PropertyGrid不显示接口的属性

编程入门 行业动态 更新时间:2024-10-25 10:31:38
本文介绍了PropertyGrid不显示接口的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想使用属性网格(propertygrid)允许GUI通过其接口之一查看类的属性. 我可以在对象查看器和调试模式下看到接口属性.该接口来自我无法修改的dll,因此无法向其中添加任何内容. Igobject来自项目中的导入参考.大多数属性是简单类型(int,string,doubles),一些是自定义复杂类型,但我暂时不需要.有什么建议吗? 有什么特别的方法可以防止propertygrid对象不显示属性.例如:

I want to use the property grid (propertygrid) to allow a GUI to view the properties of an class through one of its interfaces. I can see the interface properties in the object viewer and in debug mode. This interface comes from a dll that I don''t access to modify, so I can''t add anything to it. The Igobject comes from a an imported reference in the project. most of the properties are simple types (int, string, doubles), and some are custom complex types but I don''t need those for now. Any suggestions? is there anything special that would prevent the propertygrid object not to show the properties. for example:

Dim lobject As IgObject lobject = _galaxy.CurrentObject PropertyGrid1.SelectedObject = lobject

推荐答案

针对此问题,我试图解释如何在过去的解决方案中使用属性网格: 如何在单击PropertyGrid时获得响应 [ ^ ]. 不过,这不是很容易.
—SA
I tried to explain how to work with property grid in my past solution, in response to this question: How to get response when click PropertyGrid[^]. This is not very easy though.
—SA

我无权修改Interface属性,因此我无法在编译时添加任何属性.大多数属性都是简单类型,为什么它不显示那些? I don''t have access to modify the Interface attributes, So I can''t add any attributes at compile time. most properties as simple types, why it doesn''t show those?

更多推荐

PropertyGrid不显示接口的属性

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

发布评论

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

>www.elefans.com

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