ToolStripDropDownCloseReason 枚举

定义

指定 ToolStripDropDown 控件关闭的原因。Specifies the reason that a ToolStripDropDown control was closed.

public enum class ToolStripDropDownCloseReason
public enum ToolStripDropDownCloseReason
type ToolStripDropDownCloseReason = 
Public Enum ToolStripDropDownCloseReason
继承
ToolStripDropDownCloseReason

字段

AppClicked 1

指定 ToolStripDropDown 控件关闭的原因是启动了某个应用程序。Specifies that the ToolStripDropDown control was closed because an application was launched.

AppFocusChange 0

指定 ToolStripDropDown 控件关闭的原因是另一应用程序接收了焦点。Specifies that the ToolStripDropDown control was closed because another application has received the focus.

CloseCalled 4

指定 ToolStripDropDown 控件关闭的原因是调用了 Close() 方法。Specifies that the ToolStripDropDown control was closed because the Close() method was called.

ItemClicked 2

指定 ToolStripDropDown 控件关闭的原因是单击了该控件的其中一项。Specifies that the ToolStripDropDown control was closed because one of its items was clicked.

Keyboard 3

指定 ToolStripDropDown 控件关闭的原因是由于键盘活动,如按下了 Esc 键。Specifies that the ToolStripDropDown control was closed because of keyboard activity, such as the ESC key being pressed.

适用于