MaskedTextBox.AsciiOnly 屬性

定義

取得或設定值,指出 MaskedTextBox 控制項是否接受 ASCII 字元集之外的字元。

public:
 property bool AsciiOnly { bool get(); void set(bool value); };
public bool AsciiOnly { get; set; }
member this.AsciiOnly : bool with get, set
Public Property AsciiOnly As Boolean

屬性值

如果僅接受 ASCII,則為 true;如果 MaskedTextBox 控制項可接受任意的 Unicode 字元,則為 false。 預設為 false

備註

如果 true 為 , AsciiOnly 則會將使用者輸入限制為 a-z 和 A-Z 字元。 不允許 ASCII 控制字元。

適用於

另請參閱