Click or drag to resize
Pdf Library for .NET

PdfFormFieldTextBox Class

A single-line or multi-line text field.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfFormField
    SelectPdf.UniversalPdfFormFieldTextBox

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfFormFieldTextBox : PdfFormField

The PdfFormFieldTextBox type exposes the following members.

Properties
 NameDescription
Public propertyDisplayPageGets the zero-based index of the page the field is on, or -1.
(Inherited from PdfFormField)
Public propertyDisplayRectangleGets the field rectangle on its page (in PDF points).
(Inherited from PdfFormField)
Public propertyDivideText Gets or sets a value indicating whether the text is divided into equally spaced positions (comb fields). Requires MaxLength to be set.
Public propertyFlattenGets or sets a value indicating whether this field is flattened on save.
(Inherited from PdfFormField)
Public propertyFullNameGets the fully-qualified field name.
(Inherited from PdfFormField)
Public propertyMaxLengthGets or sets the maximum number of characters the field accepts (0 = unlimited).
Public propertyNameGets or sets the field name.
(Inherited from PdfFormField)
Public propertyReadOnlyGets or sets a value indicating whether the field is read-only.
(Inherited from PdfFormField)
Public propertyTextGets or sets the text value of the field.
Public propertyWidgetsGets the collection of widgets (visual placements) of this field.
(Inherited from PdfFormField)
Top
Example
PdfFormManager manager = new PdfFormManager();
manager.Load("form.pdf");
PdfFormFieldTextBox name =
    manager.Fields["name"] as PdfFormFieldTextBox;
name.Text = "Jane Doe";
manager.Save("filled.pdf");
See Also