# CombTextBoxField Class

The `CombTextBoxField` class corresponds to the `FormFieldType.CombTextBox` enum value and represents a text input data container. It restricts text to a specific maximum length and distributes characters equally across the field appearance.

## Properties

`CombTextBoxField` provides the following properties:

| Property                     | Description                                                                                                                                                                                                              |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Value`                      | Gets or sets the current text value of the field.                                                                                                                                                                        |
| `DefaultValue`               | Gets or sets the default value used when the [AcroForm](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/acroform) is reset to its default values. |
| `Widgets`                    | The collection of Widget annotations representing the field on the PDF pages. Widgets are created with `AddWidget()` and can be removed with `Remove()`. Implements `IEnumerable`.                                       |
| `MaxLengthOfInputCharacters` | Specifies the number of characters that can be entered.                                                                                                                                                                  |

**Create a CombTextBoxField and add it to a page**

```C#
CombTextBoxField combTextBoxField = new CombTextBoxField("SampleCombTextBox")
{
    MaxLengthOfInputCharacters = 4,
    DefaultValue = "2017",
    Value = "2017",
};

VariableContentWidget widget = combTextBoxField.Widgets.AddWidget();
widget.Rect = new Rect(0, 0, 250, 50);
widget.RecalculateContent();

document.AcroForm.FormFields.Add(combTextBoxField);
document.Pages[0].Annotations.Add(widget);
```

## See Also

* [Form Field](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/form-fields/formfields)
* [PDF Annotation Widgets](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/annotations/widgets)
* [Create Interactive Forms SDK example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/CreateInteractiveForms)
* [Modifying Forms SDK example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/ModifyForms)
