# PdfTableCellFormField

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

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfTableCellFormField.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L82)

**Modifiers**

sealed

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](/api/pdf/officeimo-pdf-pdftablecell/#property-formfields)
- Method [PdfTableCellFormField.ChoiceField](/api/pdf/officeimo-pdf-pdftablecellformfield/#method-choicefield-string-collections-generic-ienumerable-system-string-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-boolean-officeimo-pdf-pdfformfieldstyle)
- Method [PdfTableCellFormField.TextField](/api/pdf/officeimo-pdf-pdftablecellformfield/#method-textfield-string-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfformfieldstyle)

### Accepted by parameters 3

- Constructor [PdfTableCell.PdfTableCell](/api/pdf/officeimo-pdf-pdftablecell/#constructor-ctor-string-int32-string-string-int32-collections-generic-ienumerable-officeimo-pdf-pdftablecellcheckbox-collections-generic-ienumerable-officeimo-pdf-pdftablecellformfield-collections-generic-ienumerable-officeimo-pdf-pdftablecellimage-string-string) parameter `formFields`
- Method [PdfTableCell.WithFormFields](/api/pdf/officeimo-pdf-pdftablecell/#method-withformfields-collections-generic-ienumerable-officeimo-pdf-pdftextrun-collections-generic-ienumerable-officeimo-pdf-pdftablecellformfield-int32-string-string-int32-collections-generic-ienumerable-officeimo-pdf-pdftablecellcheckbox-string) parameter `formFields`
- Method [PdfTableCell.WithImages](/api/pdf/officeimo-pdf-pdftablecell/#method-withimages-collections-generic-ienumerable-officeimo-pdf-pdftextrun-collections-generic-ienumerable-officeimo-pdf-pdftablecellimage-int32-string-string-int32-collections-generic-ienumerable-officeimo-pdf-pdftablecellcheckbox-collections-generic-ienumerable-officeimo-pdf-pdftablecellformfield-string) parameter `formFields`

Filter members 

Show inherited

## 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)` [#](#member-357723a35a3741f01be6efad)

[PdfTableCellFormField.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L86)

Creates a table-cell scalar choice field.

Parameters

**name string required**

**options System.Collections.Generic.IEnumerable<string> required**

**value string? = null optional**

**width OfficeIMO.OfficeLength? = null optional**

**height OfficeIMO.OfficeLength? = null optional**

**fontSize OfficeIMO.OfficeLength? = null optional**

**isComboBox bool = true optional**

**style OfficeIMO.Pdf.PdfFormFieldStyle? = null optional**

Returns

`PdfTableCellFormField`

`public static PdfTableCellFormField TextField(string name, string? value = null, OfficeLength? width = null, OfficeLength? height = null, OfficeLength? fontSize = null, PdfFormFieldStyle? style = null)` [#](#method-textfield-string-string-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfformfieldstyle)

[PdfTableCellFormField.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L82)

Creates a table-cell text field.

Parameters

**name string required**

**value string? = null optional**

**width OfficeIMO.OfficeLength? = null optional**

**height OfficeIMO.OfficeLength? = null optional**

**fontSize OfficeIMO.OfficeLength? = null optional**

**style OfficeIMO.Pdf.PdfFormFieldStyle? = null optional**

Returns

`PdfTableCellFormField`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PdfTableCellFormFieldKind Kind { get; }` [#](#property-kind)

[PdfTableCellFormField.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L51)

Kind of AcroForm field emitted for this table cell item.

`public string Name { get; }` [#](#property-name)

[PdfTableCellFormField.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L54)

Field name written to the AcroForm tree.

`public string Value { get; }` [#](#property-value)

[PdfTableCellFormField.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L57)

Initial scalar value.

`public IReadOnlyList<string> Values { get; }` [#](#property-values)

[PdfTableCellFormField.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L60)

Initial selected values. Scalar table-cell fields expose one value.

`public IReadOnlyList<string> Options { get; }` [#](#property-options)

[PdfTableCellFormField.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L63)

Available choice options. Empty for text fields.

`public OfficeLength Width { get; }` [#](#property-width)

[PdfTableCellFormField.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L66)

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

`public OfficeLength Height { get; }` [#](#property-height)

[PdfTableCellFormField.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L69)

Visual height.

`public OfficeLength FontSize { get; }` [#](#property-fontsize)

[PdfTableCellFormField.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L72)

Text font size.

`public bool IsComboBox { get; }` [#](#property-iscombobox)

[PdfTableCellFormField.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L75)

Whether a choice field is emitted as a combo box.

`public PdfFormFieldStyle Style { get; }` [#](#property-style)

[PdfTableCellFormField.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableCellFormField.cs#L78)

Visual style for the generated field appearance stream.

<!-- PowerForge markdown artifact sha256:50D3ECDB5ED871B32EE7545D7764E839425DBCE889585EF4D02801BF63ED7739 -->
