Click or drag to resize
Pdftools logo

GeneralTextFieldMaxLength Property

The maximal text length

When setting this property to a non-null value, the length of this field's text is truncated.

Namespace: PdfTools.Toolbox.Pdf.Forms
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.0.0+fdabb036503e9f99735634a6d4f5be875399e9f5
Syntax
C#
public int? MaxLength { get; set; }

Property Value

NullableInt32
Exceptions
ExceptionCondition
InvalidOperationExceptionif the object has already been closed
NotSupportedException[set] if the document is read-only
InvalidOperationException[set] if the form field has widgets
ArgumentException[set] if the given value is not and is smaller than 0
See Also