如何从 Microsoft 在线 api/class 文档中排除继承的成员

How to exclude inherited members from Microsoft online api/class documentation

浏览 Microsoft class 文档时,我希望能够隐藏继承的成员(即继承的属性和方法)。通常,我发现自己在查看中间抽象基础 classes 以查看它们添加了哪些特定功能,并且我 "can't see the forest for the trees" - 作为特定 [=21= 引入的少数新 methods/properties ] 在其中迷失了许多 methods/properties 继承自基础 classes.

例如,请参阅此 link:https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.scrollablecontrol?view=netframework-4.7.2

很难只看到特定于 ScrollableControl 的方法。

点击https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.scrollablecontrol?view=netframework-4.7.2左边Scrollable Control左边的'triangle'(Search框下)

单击 Fields / Properties 等(在 左侧 - 不在右侧)。它们是特定于 ScrollableControl.

的字段/属性等

不是对在线文档的直接回答,而是对可用性的回答:

我更喜欢直接在 Visual Studio 中检查 classes。在一些扩展的帮助下,我们可以直接通过 F12 到每个 class 和它的父元素(这样你就看不到 [=22= 的父元素了) ] 你正在寻找)。

我个人使用 Resharper (see more info). But it seems, there is also a free extension called Ref12.

这样您就可以在不离开 IDE 的情况下检查摘要,并且还可以获得它的源代码,这有时会很有趣。