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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.