MaskedTextBox.MaxLength Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the maximum number of characters the user can type or paste into the text box control. This property is not supported by MaskedTextBox.
public:
virtual property int MaxLength { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public override int MaxLength { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.MaxLength : int with get, set
Public Overrides Property MaxLength As Integer
Property Value
This property always returns 0.
- Attributes
Remarks
See the Mask property and the Position property in the MaskInputRejectedEventArgs class for information about how to determine the maximum length of a string in a MaskedTextBox.
Applies to
See also
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.