我想使用属性网格(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时获得响应 [ ^ ]. 不过,这不是很容易.
我无权修改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不显示接口的属性
发布评论