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 حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.