ToolStrip.IsInputChar(Char) ToolStrip.IsInputChar(Char) ToolStrip.IsInputChar(Char) ToolStrip.IsInputChar(Char) Method

定义

确定字符是否为该项可识别的输入字符。Determines whether a character is an input character that the item recognizes.

protected:
 override bool IsInputChar(char charCode);
protected override bool IsInputChar (char charCode);
override this.IsInputChar : char -> bool
Protected Overrides Function IsInputChar (charCode As Char) As Boolean

参数

charCode
Char Char Char Char

要测试的字符。The character to test.

返回

如果字符应直接发送到该项而不必经过预处理,为 true;否则为 falsetrue if the character should be sent directly to the item and not preprocessed; otherwise, false.

注解

在窗口消息预处理过程中调用ToolStrip方法,以确定给定输入字符是否应经过预处理或直接发送到。IsInputCharThe IsInputChar method is called during window message preprocessing to determine whether the given input character should be preprocessed or sent directly to the ToolStrip. 如果该IsInputChar方法返回true,则将指定的字符直接发送到ToolStripIf the IsInputChar method returns true, the specified character is sent directly to the ToolStrip. 但是,如果该方法返回false,则该字符将经过预处理并仅在ToolStrip预处理阶段不使用它时发送到。However, if the method returns false, the character is preprocessed and only sent to the ToolStrip if it is not consumed by the preprocessing phase. 字符的预处理包括检查字符是否为另一个控件的助记键。The preprocessing of a character includes checking whether the character is a mnemonic of another control.

适用于