Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTableCellFormField

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
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.

Accepted by parameters 3

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 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
public 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 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

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

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

public OfficeLength Height { get; } #

Visual height.

public OfficeLength FontSize { get; } #

Text font size.

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.