---
title: maximumLength
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfannotation/maximumlength
---

# maximumLength

The maximum number of characters the text widget annotation allows.

## Declaration

```swift
var maximumLength: Int { get set }
```

## See Also

### Configuring Text Widget Annotations

- [isMultiline](pdfkit/pdfannotation/ismultiline.md)
- [isPasswordField](pdfkit/pdfannotation/ispasswordfield.md)
- [hasComb](pdfkit/pdfannotation/hascomb.md)
