PdfTableCell
OfficeIMO.Pdf
Represents a table cell with optional Word-like column and row spanning.
Inheritance
- object
- PdfTableCell
Usage
Explore 20 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 13
- 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
- Property PdfTablePageSummary.ContinuationHeaderRows
- Property PdfTablePageSummary.PageFooterRows
Accepted by parameters 7
- Method PdfContentBuilder.AddDeferredTable
- Method PdfContentBuilder.AddTable
- Method PdfDocument.AddDeferredTable
- Method PdfDocument.AddTable
- Method PdfPageCanvas.Table
- Method PdfTablePageSummary.AddContinuationHeaderRow
- Method PdfTablePageSummary.AddPageFooterRow
Constructors
public PdfTableCell(string? text, int columnSpan = 1, string? linkUri = null, string? linkContents = null, int 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 string?
- columnSpan int = 1
- linkUri string? = null
- linkContents string? = null
- rowSpan int = 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 string? = null
- namedDestinationName string? = null
public PdfTableCell(IEnumerable<PdfTextRun> runs, int columnSpan = 1, string? linkUri = null, string? linkContents = null, int 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 int = 1
- linkUri string? = null
- linkContents string? = null
- rowSpan int = 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 string? = null
- namedDestinationName string? = null
Methods
public static PdfTableCell Merge(string? text, int columnSpan = 1, int rowSpan = 1, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null) #Creates a merged cell spanning logical columns and rows.
Parameters
- text string?
- columnSpan int = 1
- rowSpan int = 1
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell Merge(IEnumerable<PdfTextRun> runs, int columnSpan = 1, int rowSpan = 1, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null) #Creates a rich text merged cell spanning logical columns and rows.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- columnSpan int = 1
- rowSpan int = 1
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell RichTextCell(IEnumerable<PdfTextRun> runs, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null, string? namedDestinationName = null) #Creates a single-column rich text cell.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
- namedDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell Span(string? text, int columnSpan, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null) #Creates a cell spanning multiple logical columns.
Parameters
- text string?
- columnSpan int
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell Span(IEnumerable<PdfTextRun> runs, int columnSpan, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null) #Creates a rich text cell spanning multiple logical columns.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- columnSpan int
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell TextCell(string? text, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null, string? namedDestinationName = null) #Creates a single-column text cell.
Parameters
- text string?
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
- namedDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell WithCheckBoxes(IEnumerable<PdfTextRun> runs, IEnumerable<PdfTableCellCheckBox> checkBoxes, int columnSpan = 1, string? linkUri = null, string? linkContents = null, int rowSpan = 1, string? linkDestinationName = null) #Creates 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 int = 1
- linkUri string? = null
- linkContents string? = null
- rowSpan int = 1
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell WithCheckBoxes(string? text, IEnumerable<PdfTableCellCheckBox> checkBoxes, int columnSpan = 1, string? linkUri = null, string? linkContents = null, int rowSpan = 1, string? linkDestinationName = null) #Creates a table cell with plain text and simple AcroForm check boxes.
Parameters
- text string?
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>
- columnSpan int = 1
- linkUri string? = null
- linkContents string? = null
- rowSpan int = 1
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell WithFormFields(IEnumerable<PdfTextRun> runs, IEnumerable<PdfTableCellFormField> formFields, int columnSpan = 1, string? linkUri = null, string? linkContents = null, int rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, string? linkDestinationName = null) #Creates 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 int = 1
- linkUri string? = null
- linkContents string? = null
- rowSpan int = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell WithFormFields(string? text, IEnumerable<PdfTableCellFormField> formFields, int columnSpan = 1, string? linkUri = null, string? linkContents = null, int rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, string? linkDestinationName = null) #Creates a table cell with plain text and simple AcroForm text or choice fields.
Parameters
- text string?
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>
- columnSpan int = 1
- linkUri string? = null
- linkContents string? = null
- rowSpan int = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell WithImages(IEnumerable<PdfTextRun> runs, IEnumerable<PdfTableCellImage> images, int columnSpan = 1, string? linkUri = null, string? linkContents = null, int rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, IEnumerable<PdfTableCellFormField>? formFields = null, string? linkDestinationName = null) #Creates 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 int = 1
- linkUri string? = null
- linkContents string? = null
- rowSpan int = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>? = null
- linkDestinationName string? = null
Returns
PdfTableCellpublic static PdfTableCell WithImages(string? text, IEnumerable<PdfTableCellImage> images, int columnSpan = 1, string? linkUri = null, string? linkContents = null, int rowSpan = 1, IEnumerable<PdfTableCellCheckBox>? checkBoxes = null, IEnumerable<PdfTableCellFormField>? formFields = null, string? linkDestinationName = null) #Creates a table cell with plain text and images.
Parameters
- text string?
- images System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellImage>
- columnSpan int = 1
- linkUri string? = null
- linkContents string? = null
- rowSpan int = 1
- checkBoxes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellCheckBox>? = null
- formFields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCellFormField>? = null
- linkDestinationName string? = null
Returns
PdfTableCellpublic PdfTableCell WithNamedDestination(string? namedDestinationName) #Returns a copy of this cell with a PDF named destination defined at the cell.
Parameters
- namedDestinationName string?
Returns
PdfTableCellpublic PdfTableCell WithNoWrap(bool noWrap = true) #Returns 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 bool = true
Returns
PdfTableCellpublic PdfTableCell WithShrinkTextToFit(bool shrinkTextToFit = true) #Returns 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 bool = true
Returns
PdfTableCellpublic PdfTableCell WithViewport(PdfTableCellViewport? viewport) #Returns 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?
Returns
PdfTableCellInherited Methods
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 bool ShrinkTextToFit { get; } #Whether source text lines reduce their font size to fit this cell's width, independently of neighboring cells.