Class PdfTextField

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

A text field, single-line or multi-line. Created with AddTextField(string, double, double, double, double, string).

public sealed class PdfTextField : PdfFormField
Inheritance
PdfTextField
Inherited Members

Properties

Alignment

Horizontal alignment of the text.

Comb

Whether the field is divided into MaxLength equally spaced boxes, one character each, as used for codes and account numbers. Requires MaxLength and a single-line field.

DefaultValue

The value the field returns to when a viewer resets the form, or null for none.

Font

The font of the field text; must be a Latin (non-symbolic) standard font. Defaults to Helvetica.

FontSize

The font size, in points. Defaults to 12.

MaxLength

The maximum number of characters, or null for no limit.

Multiline

Whether the field accepts several lines; the appearance wraps text at word boundaries.

TextColor

The text colour. Defaults to black.

Value

The field's text.