ToolStripItem.IsInputChar(Char) 方法

定義

判斷字元是否為此項目所能識別的輸入字元。Determines whether a character is an input character that the item recognizes.

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

要測試的字元。The character to test.

傳回

如果字元應直接傳送至這個項目而不前置處理,則為 true,否則為 falsetrue if the character should be sent directly to the item and not preprocessed; otherwise, false.

備註

在視窗訊息前置處理期間會呼叫這個方法,以判斷指定的輸入字元是否應預先處理或直接傳送至 ToolStripItemThis method is called during window message preprocessing to determine whether the given input character should be preprocessed or sent directly to the ToolStripItem. 如果 IsInputChar 方法傳回 true,則會將指定的字元直接傳送至 ToolStripItemIf the IsInputChar method returns true, the specified character is sent directly to the ToolStripItem. 不過,如果方法傳回 false,則會前置處理字元,而且只有在前置處理階段未使用時,才會傳送至 ToolStripItemHowever, if the method returns false, the character is preprocessed and only sent to the ToolStripItem 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.

安全性

UIPermission
適用于繼承類別以呼叫這個方法的所有視窗。For all windows for inheriting classes to call this method. 相關聯的列舉: UIPermissionWindowAllWindowsAssociated enumeration: the AllWindows value of UIPermissionWindow

適用於

另請參閱