获取对象的方法,属性和事件的列表? [英] Get list of object's methods, properties and events?

查看:60
本文介绍了获取对象的方法,属性和事件的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试没有文档的新组件时,我需要仔细研究其方法,属性和事件,以弄清楚它可以做什么。通过IDE的Object Inspector进行操作有点乏味。

When trying a new component for which there's no documentation, I need to go through its methods, properties, and events to try to figure out what it can do. Doing this through the IDE's Object Inspector is a bit tedious.

是否有实用程序以更易读的格式显示此列表?

Is there a utility that presents this list in a more readable format?

谢谢。

推荐答案

当我想知道可以做什么时,我阅读源代码。除非有很多继承,否则类声明将包含所有方法和属性的简要列表。

When I want to know what something can do, I read the source code. The class declaration will contain a succinct list of all the methods and properties, unless there is a lot of inheritance. The definitions will tell you want the methods do.

另一件事是声明一个您感兴趣的类型的变量,键入其名称和句点,然后按Ctrl +空格键,让类完成向您显示您可以做的所有事情。

Another thing is to declare a variable of the type you're interested in, type its name and a period, and then press Ctrl+Space to let Class Completion show you everything you can do.

这篇关于获取对象的方法,属性和事件的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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