PeachBrackets

PeachBrackets.Annotations

FormFieldClassification Struct

What a form control is: its kind, name and value, and the attributes that shape how it behaves.

public readonly struct FormFieldClassification
Fields  
None The classification of an element that is not a form control.
Properties  
Attributes The HTML attributes that shape the field’s behavior. The readonly/required/no-export three apply to every kind; the rest are text-field only.
AutoFontSize -peachpdf-pdf-form-field-auto-font-size’s resolved value - only meaningful for Text.
Checked Whether a checkbox/radio’s checked attribute is present. Always false for other kinds.
Comb -peachpdf-pdf-form-field-comb’s resolved cell count, or null when unset - only meaningful for Text.
DoNotScroll -peachpdf-pdf-form-field-do-not-scroll’s resolved value - only meaningful for Text.
Kind The kind of control.
Name The field’s name attribute, or null if absent.
Options A select field’s <option> children, in document order. Empty for other kinds.
PlaceholderShown Whether the standard HTML placeholder is shown for this empty control, so a consumer that makes the control interactive knows whether to draw the placeholder or the value. Only meaningful for Text.
Value The field’s current text value (text fields) or export value (checkbox/radio). Null for Select.