ToolStripItem.IsInputChar(Char) 方法

定义

确定字符是否是项识别的输入字符。

protected public:
 virtual bool IsInputChar(char charCode);
protected internal virtual bool IsInputChar(char charCode);
abstract member IsInputChar : char -> bool
override this.IsInputChar : char -> bool
Protected Friend Overridable Function IsInputChar (charCode As Char) As Boolean

参数

charCode
Char

要测试的字符。

返回

true 如果应将字符直接发送到项目而不是预处理,则为否则,为 false.

注解

在窗口消息预处理期间调用此方法,以确定是应预处理给定的输入字符还是直接发送到该 ToolStripItem字符。 IsInputChar如果方法返回true,则指定字符将直接发送到该ToolStripItem字符。 但是,如果该方法返回 false,则表示已预处理字符,并且仅发送到 ToolStripItem 预处理阶段未使用该字符。 字符的预处理包括检查字符是否是另一个控件的助记。

适用于

另请参阅