New to Telerik Document ProcessingStart a free 30-day trial

CombTextBoxField class

Updated on May 11, 2026

This article describes the following topics:

Overview

This class corresponds to FormFieldType.CombTextBox enum value and represents a text input data container which restricts its text to some specific length and the characters are equally distributed through the field appearance length.

Properties

CombTextBoxField provides the following properties:

PropertyDescription
ValueGets or sets the current text value of the field.
DefaultValueGets or sets the default value used when the AcroForm is reset to its default values.
WidgetsThe collection of Widget annotations representing the field on the PDF pages. Widgets are created using AddWidget() and can be removed using Remove(). Implements IEnumerable.
MaxLengthOfInputCharactersSpecifies the number of characters that can be inputted.

Example 1: 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

In this article
OverviewPropertiesSee Also
Not finding the help you need?
Contact Support