Table of Contents

Property MaxLength

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

MaxLength

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

public int? MaxLength { get; set; }

Property Value

int?

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

Remarks

If this property is null, then this text box has no limit for the number of characters that can be entered into it.

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

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

Exceptions

UnexpectedStructureException

The value in the internal PDF structure has an unexpected type.

PdfException

value in less than the length of Text.