AxHost.IsInputChar(Char) 方法

定義

判斷字元是否為 ActiveX 控制項能夠辨認的輸入字元。Determines if a character is an input character that the ActiveX control 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

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

傳回

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

備註

IsInputChar視窗訊息前置處理期間會呼叫方法,以判斷指定的輸入字元是否應預先處理或直接傳送至 ActiveX 控制項。The IsInputChar method is called during window message preprocessing to determine whether the given input character should be preprocessed or sent directly to the ActiveX control. 字元的前置處理包含檢查字元是否為另一個控制項的助憶鍵。The preprocessing of a character includes checking whether the character is a mnemonic of another control.

AxHost true類別IsInputChar中執行時,方法一律會傳回,因此指定的字元會直接傳送至 ActiveX 控制項。As implemented in the AxHost class, the IsInputChar method always returns true, so the specified character is sent directly to the ActiveX control.

安全性

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

適用於

另請參閱