PdfTableCell Class
A cell of a PdfTableRow: a text, broken into lines that fit the width of its column. The properties that are null take the value of the row, then of the table.
public sealed class PdfTableCellConstructors
| Name | Description |
|---|---|
| PdfTableCell(string) | Initializes a new instance of the PdfTableCell class. |
PdfTableCell(string)
PdfTableCell.csInitializes a new instance of the PdfTableCell class.
public PdfTableCell(string text)Parameters
textstring- The text of the cell. A line feed starts a new paragraph.
Properties
| Name | Description |
|---|---|
| Alignment | Gets or sets the horizontal alignment of the text, or null for the alignment of the column. |
| Background | Gets or sets the color that fills the cell, or null for the background of the row. |
| ColumnSpan | Gets or sets the number of columns the cell spans, 1 or more. The default is 1. |
| Font | Gets or sets the font of the text, or null for the font of the row. |
| FontSize | Gets or sets the font size of the text, or null for the font size of the row. |
| Text | Gets or sets the text of the cell. A line feed starts a new paragraph. |
| TextColor | Gets or sets the color of the text, or null for the color of the row. |
Alignment
PdfTableCell.csGets or sets the horizontal alignment of the text, or null for the alignment of the column.
public PdfTextAlignment? Alignment { get; set; }