PropertyGrid不显示接口的属性 [英] PropertyGrid not showing properties of an interface

查看:78
本文介绍了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不显示接口的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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