Gets or sets the maximum number of characters or bytes that the control can hold.
'Declaration
<C1CategoryAttribute("Behavior")>
<C1DescriptionAttribute("Gets or sets the maximum number of characters or bytes that the control can hold.")>
<DefaultValueAttribute()>
Public Shadows Property MaxLength As Integer
'Usage
Dim instance As C1TextBox
Dim value As Integer
instance.MaxLength = value
value = instance.MaxLength
[C1Category("Behavior")]
[C1Description("Gets or sets the maximum number of characters or bytes that the control can hold.")]
[DefaultValue()]
public new int MaxLength {get; set;}
[C1Category("Behavior")]
[C1Description("Gets or sets the maximum number of characters or bytes that the control can hold.")]
[DefaultValue()]
public:
new property int MaxLength {
int get();
void set ( int value);
}
Property Value
The number of characters or bytes (determined by the
LengthAsByte property) that can be entered into the control.
The default is
zero.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2