ToolStripItem.IsInputKey(Keys) ToolStripItem.IsInputKey(Keys) ToolStripItem.IsInputKey(Keys) ToolStripItem.IsInputKey(Keys) Method

定义

确定指定的键是常规输入键还是需要预处理的特殊键。Determines whether the specified key is a regular input key or a special key that requires preprocessing.

protected public:
 virtual bool IsInputKey(System::Windows::Forms::Keys keyData);
protected internal virtual bool IsInputKey (System.Windows.Forms.Keys keyData);
abstract member IsInputKey : System.Windows.Forms.Keys -> bool
override this.IsInputKey : System.Windows.Forms.Keys -> bool
Protected Friend Overridable Function IsInputKey (keyData As Keys) As Boolean

参数

keyData
Keys Keys Keys Keys

Keys 值之一。One of the Keys values.

返回

如果指定的键是常规输入键,则为 true;否则为 falsetrue if the specified key is a regular input key; otherwise, false.

注解

在窗口消息预处理过程中调用ToolStripItem 方法,以确定指定的键是否为常规输入键,该输入键应直接发送到或特殊键(如pageUP、pageDOWN、ENTER、ESC、TAB或箭头键)。IsInputChar应进行预处理。Call the IsInputChar method during window-message preprocessing to determine whether the specified key is a regular input key that should be sent directly to the ToolStripItem or a special key (such as PAGE UP, PAGE DOWN, ENTER, ESC, TAB, or arrow keys) that should be preprocessed. 在后一种情况下, ToolStripItem只有在预处理阶段不使用密钥时, 才会将其发送到。In the latter case, the key is sent to the ToolStripItem only if it is not consumed by the preprocessing phase.

安全性

UIPermission
用于继承类的所有窗口以调用此方法。For all windows for inheriting classes to call this method. 关联枚举: AllWindows的值UIPermissionWindowAssociated enumeration: the AllWindows value of UIPermissionWindow

适用于

另请参阅