API Reference
PdfTableCell
Represents a table cell with optional Word-like column and row spanning.
Inheritance
- Object
- PdfTableCell
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method PdfTableCell.Merge
- Method PdfTableCell.Merge
- Method PdfTableCell.RichTextCell
- Method PdfTableCell.Span
- Method PdfTableCell.Span
- Method PdfTableCell.TextCell
- Method PdfTableCell.WithCheckBoxes
- Method PdfTableCell.WithCheckBoxes
- Method PdfTableCell.WithFormFields
- Method PdfTableCell.WithFormFields
- Method PdfTableCell.WithImages
- Method PdfTableCell.WithImages
- Method PdfTableCell.WithNamedDestination
- Method PdfTableCell.WithNoWrap
Accepted by parameters
- Method PdfDocument.Table
- Method PdfDocument.TableDeferred
- Method PdfElementCompose.Table
- Method PdfItemCompose.Table
- Method PdfPageCanvas.Table
- Method PdfPageCanvas.Table
- Method PdfPageCanvas.Table
- Method PdfRowColumnCompose.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<TextRun> 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.TextRun}
- 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<TextRun> 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.TextRun}
- 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<TextRun> 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.TextRun}
- 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<TextRun> 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.TextRun}
- 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<TextRun> 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.TextRun}
- 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<TextRun> 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.TextRun}
- 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<TextRun> 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.TextRun}
- 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
Inherited Methods
Properties
public IReadOnlyList<TextRun> Runs { get; } #Rich text runs for the cell. Plain text cells expose a single unstyled run.
public Int32 ColumnSpan { get; } #Number of logical columns covered by this cell.
public Int32 RowSpan { get; } #Number of logical rows covered by this cell.
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.