API Reference

Class

PdfTableCellFormField

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Represents a simple AcroForm text or choice field rendered inside a PDF table cell.

Inheritance

  • Object
  • PdfTableCellFormField

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

public static PdfTableCellFormField ChoiceField(String name, IEnumerable<String> options, String value = null, Double width = 120, Double height = 18, Double fontSize = 10, Boolean isComboBox = true, PdfFormFieldStyle style = null) #
Returns: PdfTableCellFormField

Creates a table-cell scalar choice field.

Parameters

name System.String requiredposition: 0
options System.Collections.Generic.IEnumerable{System.String} requiredposition: 1
value System.String = null optionalposition: 2
width System.Double = 120 optionalposition: 3
height System.Double = 18 optionalposition: 4
fontSize System.Double = 10 optionalposition: 5
isComboBox System.Boolean = true optionalposition: 6
style OfficeIMO.Pdf.PdfFormFieldStyle = null optionalposition: 7
public static PdfTableCellFormField TextField(String name, String value = null, Double width = 120, Double height = 18, Double fontSize = 10, PdfFormFieldStyle style = null) #
Returns: PdfTableCellFormField

Creates a table-cell text field.

Parameters

name System.String requiredposition: 0
value System.String = null optionalposition: 1
width System.Double = 120 optionalposition: 2
height System.Double = 18 optionalposition: 3
fontSize System.Double = 10 optionalposition: 4
style OfficeIMO.Pdf.PdfFormFieldStyle = null optionalposition: 5

Properties

public PdfTableCellFormFieldKind Kind { get; } #

Kind of AcroForm field emitted for this table cell item.

public String Name { get; } #

Field name written to the AcroForm tree.

public String Value { get; } #

Initial scalar value.

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 Double Width { get; } #

Preferred visual width in points. Rendering clamps this to the available cell width.

public Double Height { get; } #

Visual height in points.

public Double FontSize { get; } #

Text font size in points.

public Boolean IsComboBox { get; } #

Whether a choice field is emitted as a combo box.

public PdfFormFieldStyle Style { get; } #

Visual style for the generated field appearance stream.