API Reference
PdfTableCell
Represents a table cell with optional Word-like column and row spanning.
Inheritance
- Object
- PdfTableCell
Usage
Explore 14 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 11
- Method PdfTableCell.Merge
- Method PdfTableCell.RichTextCell
- Method PdfTableCell.Span
- Method PdfTableCell.TextCell
- Method PdfTableCell.WithCheckBoxes
- Method PdfTableCell.WithFormFields
- Method PdfTableCell.WithImages
- Method PdfTableCell.WithNamedDestination
- Method PdfTableCell.WithNoWrap
- Method PdfTableCell.WithShrinkTextToFit
- Method PdfTableCell.WithViewport
Accepted by parameters 3
- Method PdfContentBuilder.Table
- Method PdfContentBuilder.TableDeferred
- Method PdfPageCanvas.Table
Constructors
public PdfTableCell(String? text, Int32 columnSpan = 1, String? linkUri = null, String? linkContents = null, Int32 rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, IEnumerable<PdfTableCellFormField>? formFields = null, IEnumerable<PdfTableCellImage>? images = null, String? linkDestinationName = null, String? namedDestinationName = null) #Creates a table cell with text content, optional column/row spans, optional link metadata, images, and form fields.
Parameters
- text System.String?
- columnSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- rowSpan System.Int32 = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>? = null
- images System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellImage>? = null
- linkDestinationName System.String? = null
- namedDestinationName System.String? = null
public PdfTableCell(IEnumerable<PdfTextRun> runs, Int32 columnSpan = 1, String? linkUri = null, String? linkContents = null, Int32 rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, IEnumerable<PdfTableCellFormField>? formFields = null, IEnumerable<PdfTableCellImage>? images = null, String? linkDestinationName = null, String? namedDestinationName = null) #Creates a table cell with rich text runs, optional column/row spans, optional link metadata, images, and form fields.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- columnSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- rowSpan System.Int32 = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>? = null
- images System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellImage>? = null
- linkDestinationName System.String? = null
- namedDestinationName System.String? = null
Methods
public static PdfTableCell Merge(String? text, Int32 columnSpan = 1, Int32 rowSpan = 1, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null) #PdfTableCellCreates a merged cell spanning logical columns and rows.
Parameters
- text System.String?
- columnSpan System.Int32 = 1
- rowSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public static PdfTableCell Merge(IEnumerable<PdfTextRun> runs, Int32 columnSpan = 1, Int32 rowSpan = 1, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null) #PdfTableCellCreates a rich text merged cell spanning logical columns and rows.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- columnSpan System.Int32 = 1
- rowSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public static PdfTableCell RichTextCell(IEnumerable<PdfTextRun> runs, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null, String? namedDestinationName = null) #PdfTableCellCreates a single-column rich text cell.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
- namedDestinationName System.String? = null
public static PdfTableCell Span(String? text, Int32 columnSpan, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null) #PdfTableCellCreates a cell spanning multiple logical columns.
Parameters
- text System.String?
- columnSpan System.Int32
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public static PdfTableCell Span(IEnumerable<PdfTextRun> runs, Int32 columnSpan, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null) #PdfTableCellCreates a rich text cell spanning multiple logical columns.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- columnSpan System.Int32
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public static PdfTableCell TextCell(String? text, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null, String? namedDestinationName = null) #PdfTableCellCreates a single-column text cell.
Parameters
- text System.String?
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
- namedDestinationName System.String? = null
public static PdfTableCell WithCheckBoxes(IEnumerable<PdfTextRun> runs, IEnumerable<PdfTableCellCheckBox> checkBoxes, Int32 columnSpan = 1, String? linkUri = null, String? linkContents = null, Int32 rowSpan = 1, String? linkDestinationName = null) #PdfTableCellCreates a table cell with rich text and simple AcroForm check boxes.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>
- columnSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- rowSpan System.Int32 = 1
- linkDestinationName System.String? = null
public static PdfTableCell WithCheckBoxes(String? text, IEnumerable<PdfTableCellCheckBox> checkBoxes, Int32 columnSpan = 1, String? linkUri = null, String? linkContents = null, Int32 rowSpan = 1, String? linkDestinationName = null) #PdfTableCellCreates a table cell with plain text and simple AcroForm check boxes.
Parameters
- text System.String?
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>
- columnSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- rowSpan System.Int32 = 1
- linkDestinationName System.String? = null
public static PdfTableCell WithFormFields(IEnumerable<PdfTextRun> runs, IEnumerable<PdfTableCellFormField> formFields, Int32 columnSpan = 1, String? linkUri = null, String? linkContents = null, Int32 rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, String? linkDestinationName = null) #PdfTableCellCreates a table cell with rich text and simple AcroForm text or choice fields.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>
- columnSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- rowSpan System.Int32 = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- linkDestinationName System.String? = null
public static PdfTableCell WithFormFields(String? text, IEnumerable<PdfTableCellFormField> formFields, Int32 columnSpan = 1, String? linkUri = null, String? linkContents = null, Int32 rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, String? linkDestinationName = null) #PdfTableCellCreates a table cell with plain text and simple AcroForm text or choice fields.
Parameters
- text System.String?
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>
- columnSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- rowSpan System.Int32 = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- linkDestinationName System.String? = null
public static PdfTableCell WithImages(IEnumerable<PdfTextRun> runs, IEnumerable<PdfTableCellImage> images, Int32 columnSpan = 1, String? linkUri = null, String? linkContents = null, Int32 rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, IEnumerable<PdfTableCellFormField>? formFields = null, String? linkDestinationName = null) #PdfTableCellCreates a table cell with rich text and images.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- images System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellImage>
- columnSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- rowSpan System.Int32 = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>? = null
- linkDestinationName System.String? = null
public static PdfTableCell WithImages(String? text, IEnumerable<PdfTableCellImage> images, Int32 columnSpan = 1, String? linkUri = null, String? linkContents = null, Int32 rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, IEnumerable<PdfTableCellFormField>? formFields = null, String? linkDestinationName = null) #PdfTableCellCreates a table cell with plain text and images.
Parameters
- text System.String?
- images System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellImage>
- columnSpan System.Int32 = 1
- linkUri System.String? = null
- linkContents System.String? = null
- rowSpan System.Int32 = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>? = null
- linkDestinationName System.String? = null
public PdfTableCell WithNamedDestination(String? namedDestinationName) #PdfTableCellReturns a copy of this cell with a PDF named destination defined at the cell.
Parameters
- namedDestinationName System.String?
public PdfTableCell WithNoWrap(Boolean noWrap = true) #PdfTableCellReturns a copy that keeps each cell paragraph on one visual line. When the containing table enables text shrinking, the renderer reduces the font before clipping.
Parameters
- noWrap System.Boolean = true
public PdfTableCell WithShrinkTextToFit(Boolean shrinkTextToFit = true) #PdfTableCellReturns a copy that fits source text lines to this cell's width without shrinking its neighbors. The table's PdfTableStyle.MinimumShrinkFontSize limits the reduction.
Parameters
- shrinkTextToFit System.Boolean = true
public PdfTableCell WithViewport(PdfTableCellViewport? viewport) #PdfTableCellReturns a copy that renders the given portion of the full cell, including images. Cells containing check boxes or form fields cannot use a viewport.
Parameters
- viewport OfficeIMO.Pdf.PdfTableCellViewport?
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public IReadOnlyList<PdfTextRun> Runs { get; } #Rich text runs for the cell. Plain text cells expose a single unstyled run.
public String? LinkUri { get; } #Optional absolute URI or catalog-base-relative URI linked from this cell.
public String? LinkDestinationName { get; } #Optional PDF named destination linked from this cell.
public String? NamedDestinationName { get; } #Optional PDF named destination defined at this cell.
public String? LinkContents { get; } #Optional PDF annotation contents metadata for the cell link.
public IReadOnlyList<PdfTableCellCheckBox> CheckBoxes { get; } #Simple AcroForm check boxes rendered inside this cell.
public IReadOnlyList<PdfTableCellFormField> FormFields { get; } #Simple AcroForm text and choice fields rendered inside this cell.
public IReadOnlyList<PdfTableCellImage> Images { get; } #Images rendered inside this cell.
public PdfTableCellViewport? Viewport { get; } #Optional full-cell geometry used to position cell content within a clipped fragment.
public Boolean ShrinkTextToFit { get; } #Whether source text lines reduce their font size to fit this cell's width, independently of neighboring cells.