Control.IsInputChar(Char) 方法

定义

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

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

参数

charCode
Char

要测试的字符。

返回

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

注解

IsInputChar调用该方法以确定参数指定的charCode字符是否为控件所需的输入字符。 在窗口消息预处理期间调用此方法,以确定是应预处理指定的输入字符还是直接发送到控件。 如果 IsInputChar 返回 true,则指定字符将直接发送到控件。 如果 IsInputChar 返回 false,则预处理指定的字符,并且仅当预处理阶段不使用该字符时,才会发送到控件。 字符的预处理包括检查字符是否是另一个控件的助记。

适用于

另请参阅