Class
PdfTableCellFormField
OfficeIMO.Pdf
Represents a simple AcroForm text or choice field rendered inside a PDF table cell.
Inheritance
- object
- PdfTableCellFormField
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Property PdfTableCell.FormFields
- Method PdfTableCellFormField.ChoiceField
- Method PdfTableCellFormField.TextField
Accepted by parameters 3
- Constructor PdfTableCell.PdfTableCell
- Method PdfTableCell.WithFormFields
- Method PdfTableCell.WithImages
Methods
public static PdfTableCellFormField ChoiceField(string name, IEnumerable<string> options, string? value = null, OfficeLength? width = null, OfficeLength? height = null, OfficeLength? fontSize = null, bool isComboBox = true, PdfFormFieldStyle? style = null) #Creates a table-cell scalar choice field.
Parameters
- name string
- options System.Collections.Generic.IEnumerable<string>
- value string? = null
- width OfficeIMO.OfficeLength? = null
- height OfficeIMO.OfficeLength? = null
- fontSize OfficeIMO.OfficeLength? = null
- isComboBox bool = true
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfTableCellFormFieldpublic static PdfTableCellFormField TextField(string name, string? value = null, OfficeLength? width = null, OfficeLength? height = null, OfficeLength? fontSize = null, PdfFormFieldStyle? style = null) #Creates a table-cell text field.
Parameters
- name string
- value string? = null
- width OfficeIMO.OfficeLength? = null
- height OfficeIMO.OfficeLength? = null
- fontSize OfficeIMO.OfficeLength? = null
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfTableCellFormFieldInherited Methods
Properties
public PdfTableCellFormFieldKind Kind { get; } #Kind of AcroForm field emitted for this table cell item.
public IReadOnlyList<string> Values { get; } #Initial selected values. Scalar table-cell fields expose one value.
public IReadOnlyList<string> Options { get; } #Available choice options. Empty for text fields.
public OfficeLength Width { get; } #Preferred visual width. Rendering clamps this to the available cell width.
public bool IsComboBox { get; } #Whether a choice field is emitted as a combo box.
public PdfFormFieldStyle Style { get; } #Visual style for the generated field appearance stream.