MaskedTextBox.AsciiOnly Egenskap

Definition

Hämtar eller anger ett värde som anger om MaskedTextBox kontrollen accepterar tecken utanför ASCII-teckenuppsättningen.

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

Egenskapsvärde

true om endast ASCII godkänns; false om kontrollen MaskedTextBox kan acceptera godtyckliga Unicode-tecken. Standardvärdet är false.

Kommentarer

Om true, AsciiOnly begränsar användarens indata till tecknen a-z och A-Z. ASCII-kontrolltecken tillåts inte.

Gäller för

Se även