Control.IsInputChar(Char) Control.IsInputChar(Char) Control.IsInputChar(Char) Control.IsInputChar(Char) Method


判斷字元是否為控制項辨認的輸入字元。Determines if a character is an input character that the control recognizes.

 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


Char Char Char Char

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


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


呼叫方法, 以判斷charCode參數所指定的字元是否為控制項想要的輸入字元。 IsInputCharCall the IsInputChar method to determine whether the character specified by the charCode parameter is an input character that the control wants. 在視窗訊息前置處理期間會呼叫這個方法, 以判斷指定的輸入字元是否應預先處理或直接傳送至控制項。This method is called during window message preprocessing to determine whether the specified input character should be preprocessed or sent directly to the control. 如果IsInputChar傳回,則會將指定的字元直接傳送至控制項。 trueIf IsInputChar returns true, the specified character is sent directly to the control. 如果IsInputChar傳回,則指定的字元會經過前置處理, 而且只有在前置處理階段未使用時, 才會傳送至控制項。 falseIf IsInputChar returns false, the specified character is preprocessed and only sent to the control 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.


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