我正在运行Visual Studio 2010,也许它也适用于其他版本。当我在设计师中并查看RadioButton的事件时,MouseDoubleClick事件不存在:
但是,如果我转到代码视图并查看那里的RadioButton事件,我可以看到MouseDoubleClick事件:
似乎VS设计师只显示继承的事件,而不是在RadioButton类中直接实现的事件。如何让所有这些都出现在设计师手中?
编辑:正如Hans Passant(对问题的评论)和lomed(接受的答案)所指出的那样,这是故意隐藏的。我使用的是ReSharper,这可能就是它出现在IntelliSense中的原因,在他接受的答案的评论中也指出了这一点。
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public event MouseEventHandler MouseDoubleClick;
答案 0 :(得分:3)
使用Object Browser
或代码元数据(右键单击>转到定义或F12)或MSDN。
(F2)设置启用“显示隐藏的类型和成员”(请参阅:Did you know… You can hide or show hidden members and types in the Object Browser?和Viewing the Structure of Code)
隐藏在Object Browser
Signature