Control.IsInputChar(Char) Méthode
Définition
Détermine si un caractère est un caractère d'entrée que le contrôle reconnaît.Determines if a character is an input character that the control recognizes.
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
Paramètres
- charCode
- Char
Caractère à tester.The character to test.
Retours
true
si le caractère doit être envoyé directement au contrôle sans prétraitement ; sinon, false
.true
if the character should be sent directly to the control and not preprocessed; otherwise, false
.
Remarques
Appelez la méthode IsInputChar pour déterminer si le caractère spécifié par le paramètre charCode
est un caractère d’entrée que le contrôle veut.Call the IsInputChar method to determine whether the character specified by the charCode
parameter is an input character that the control wants. Cette méthode est appelée pendant le prétraitement des messages de fenêtre pour déterminer si le caractère d’entrée spécifié doit être prétraité ou envoyé directement au contrôle.This method is called during window message preprocessing to determine whether the specified input character should be preprocessed or sent directly to the control. Si IsInputChar retourne true
, le caractère spécifié est envoyé directement au contrôle.If IsInputChar returns true
, the specified character is sent directly to the control. Si IsInputChar retourne false
, le caractère spécifié est prétraité et envoyé uniquement au contrôle s’il n’est pas consommé par la phase de prétraitement.If IsInputChar returns false
, the specified character is preprocessed and only sent to the control if it is not consumed by the preprocessing phase. Le prétraitement d’un caractère consiste à vérifier si le caractère est un mnémonique d’un autre contrôle.The preprocessing of a character includes checking whether the character is a mnemonic of another control.
Sécurité
UIPermission
pour toutes les fenêtres permettant d’hériter des classes pour appeler cette méthode.for all windows for inheriting classes to call this method. Énumération associée : valeur AllWindows
de UIPermissionWindow.Associated enumeration: AllWindows
value of UIPermissionWindow.