Gets or sets the maximum number of characters that can be entered into the text box.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public int MaxLength { get; set; }
VB
Public Property MaxLength As Integer
	Get
	Set

Property Value

Type: Int32
The maximum number of characters that can be entered into the text box.

Remarks

If this property is equal to MaxValue then this text box has no limit for number of characters that can be entered into it.

Setting zero, negative value or value equal to MaxValue removes the limit for number of characters that can be entered into this text box.

Setting non-zero, positive value less than length of existing Text causes a PdfException to be thrown.

See Also