ComponentDesigner.DoDefaultAction 方法

定义

在源代码文件中为组件的默认事件创建方法签名,并将用户的光标定位到该位置。Creates a method signature in the source code file for the default event on the component and navigates the user's cursor to that location.

public:
 virtual void DoDefaultAction();
public virtual void DoDefaultAction ();
abstract member DoDefaultAction : unit -> unit
override this.DoDefaultAction : unit -> unit
Public Overridable Sub DoDefaultAction ()

实现

例外

签出已签入源代码管理程序的文件的尝试失败。An attempt to check out a file that is checked into a source code management program failed.

注解

在 Windows 窗体和 Web 窗体设计器中,当用户双击组件时,将调用此方法。In Windows Forms and Web Forms designers, this method is invoked when a user double-clicks a component.

适用于

另请参阅