Class VariableTextField
Abstract base for fields that use variable-text appearance generation (spec §12.7.3.2). Text fields and choice fields both derive from this class because they share the default-appearance (/DA), justification (/Q), and default-value (/DV) machinery.
Inherited Members
Namespace: DRIT.Pdf.Forms
Assembly: DRIT.Pdf.dll
Syntax
public abstract class VariableTextField : FormField
Properties
DefaultValue
The default value of the field — the value used when the field is reset (spec §12.7.3.2, /DV entry).
Declaration
public string? DefaultValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Justification
Horizontal justification of the field text (spec §12.7.3.2, /Q entry). Defaults to Left.
Declaration
public TextJustification Justification { get; set; }
Property Value
| Type | Description |
|---|---|
| TextJustification |
TextAppearance
The variable-text appearance model controlling font, size, and colour used to generate the field's appearance stream.
Declaration
public VariableTextAppearance TextAppearance { get; }
Property Value
| Type | Description |
|---|---|
| VariableTextAppearance |