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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.