---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/textboxfield
---

# TextBoxField

## Overview

`TextBoxField` is a type in Aspose.PDF FOSS for Go.
Inherits from: `fieldBase`.

TextBoxField is a single- or multi-line text input.

This type declares 10 methods for TextBoxField objects in Go programs.
Available methods include: `IsMultiline`, `IsPassword`, `MaxLen`, `SetMaxLen`, `SetMultiline`, `SetPassword`, `SetReadOnly`, `SetRequired`, `SetValue`, `Value`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Value()` → `string` | Returns the value. |
| `SetValue(s: string)` → `error` | Sets the value value. |
| `MaxLen()` → `int` | Returns the max len. |
| `IsMultiline()` → `bool` | Returns true if multiline is set. |
| `IsPassword()` → `bool` | Returns true if password is set. |
| `SetReadOnly(v: bool)` | Sets the read only value. |
| `SetRequired(v: bool)` | Sets the required value. |
| `SetMultiline(v: bool)` | Sets the multiline value. |
| `SetPassword(v: bool)` | Sets the password value. |
| `SetMaxLen(n: int)` | SetMaxLen sets the maximum number of characters. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)