PdfTextField Class
A text field (ISO 32000-2, 12.7.5.3): a box the user types a text in.
public sealed class PdfTextField : PdfFormField- Inheritance
PdfFormFieldPdfTextField
Properties
| Name | Description |
|---|---|
| IsComb | Gets a value indicating whether the field is divided into PdfTextField.MaxLength cells of one character (bit 25 of PdfFormField.Flags). |
| IsMultiline | Gets a value indicating whether the field can have several lines (bit 13 of PdfFormField.Flags). |
| IsPassword | Gets a value indicating whether the text is a password, shown as asterisks (bit 14 of PdfFormField.Flags). |
| MaxLength | Gets the maximum length of the text (/MaxLen, inherited), or null when it has none. |
| Value | Gets or sets the text of the field (/V). Setting it writes the appearances of the widgets (12.7.4.3) with the font, size and color of the default appearance (/DA), so that the text is shown and printed, and flattened, by every viewer. |
IsComb
PdfTextField.csGets a value indicating whether the field is divided into PdfTextField.MaxLength cells of one character (bit 25 of PdfFormField.Flags).
public bool IsComb { get; }Property value
IsMultiline
PdfTextField.csGets a value indicating whether the field can have several lines (bit 13 of PdfFormField.Flags).
public bool IsMultiline { get; }Property value
IsPassword
PdfTextField.csGets a value indicating whether the text is a password, shown as asterisks (bit 14 of PdfFormField.Flags).
public bool IsPassword { get; }Property value
MaxLength
PdfTextField.csValue
PdfTextField.csGets or sets the text of the field (/V). Setting it writes the appearances of the widgets (12.7.4.3) with the font, size and color of the default appearance (/DA), so that the text is shown and printed, and flattened, by every viewer.
public override string? Value { get; set; }