MaskedTextProvider.IsValidInputChar(Char) 方法

定义

确定指定的字符是否为有效的输入字符。Determines whether the specified character is a valid input character.

public:
 static bool IsValidInputChar(char c);
public static bool IsValidInputChar (char c);
static member IsValidInputChar : char -> bool
Public Shared Function IsValidInputChar (c As Char) As Boolean

参数

c
Char

要测试的 Char 值。The Char value to test.

返回

如果指定的字符包含有效的输入值,则为 true;否则为 falsetrue if the specified character contains a valid input value; otherwise false.

注解

有效的输入字符包括所有可打印字符,其中包括字母、数字、标点符号、符号和空格字符。Valid input characters include all printable characters, which include letters, digits, punctuation, symbols and the space character.

适用于

另请参阅