• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
FormField
VariableTextField
ChoiceField
TextField
Inherited Members
FormField.Name
FormField.Value
FormField.FieldType
FormField.Tooltip
FormField.IsRequired
FormField.Page
FormField.Rect
FormField.Appearance
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX