Class FormField
Base class for all interactive form fields.
Inheritance
FormField
Inherited Members
Namespace: DRIT.Pdf.Forms
Assembly: DRIT.Pdf.dll
Syntax
public abstract class FormField
Properties
Appearance
Appearance helper (border color, label, Refresh/Get).
Declaration
public FieldAppearance Appearance { get; }
Property Value
| Type | Description |
|---|---|
| FieldAppearance |
FieldType
The field type.
Declaration
public abstract FieldType FieldType { get; }
Property Value
| Type | Description |
|---|---|
| FieldType |
IsRequired
When true, the field is marked as required in the PDF field flags (/Ff bit 2).
Declaration
public bool IsRequired { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
The partial field name (the /T entry in the widget dict).
Declaration
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Page
The page on which this field's widget annotation appears.
Declaration
public Page Page { get; }
Property Value
| Type | Description |
|---|---|
| Page |
Rect
The bounding rectangle of the field widget in page user-space units.
Declaration
public PdfRect Rect { get; }
Property Value
| Type | Description |
|---|---|
| PdfRect |
Tooltip
Optional user-facing tooltip text for the field (/TU).
Declaration
public string Tooltip { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Value
The current value of the field (type depends on field kind).
Declaration
public abstract object? Value { get; set; }
Property Value
| Type | Description |
|---|---|
| object |