[]
Represents a table cell element in a body content.
public class Cell : FormattedContentObject, IBrowsable<Cell>
Provides access to this table cell formatting properties.
public CellFormat Format { get; }
Gets or sets a unique identifier for the table cell. This identifier must be unique within the table, and is used to identify this table cell as a header cell for other cells within the table.
public string ID { get; set; }
Gets the index of this cell in the parent table row.
public int Index { get; }
Gets the next table cell.
public Cell Next { get; }
Gets the previous table cell.
public Cell Previous { get; }
Gets the parent table row of this cell.
public Row Row { get; }
Gets the parent table of this cell.
public Table Table { get; }
Adds a ContentControl to the end of the cell.
public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)
type
ContentControlTypeThe new content control type.
fillContent
boolWhether to fill the new control content with default data.
The added ContentControl.
Adds a Paragraph to the end of the cell.
public Paragraph AddParagraph()
Adds a Paragraph to the end of the cell.
public Paragraph AddParagraph(Style style)
style
StyleThe paragraph style.
Adds a Paragraph to the end of the cell.
public Paragraph AddParagraph(string text, Style style)
Adds a Paragraph to the end of the cell.
public Paragraph AddParagraph(string text)
text
stringThe text of the added Paragraph
Adds a Table to the end of the cell.
public Table AddTable()
Adds a Table to the end of the cell.
public Table AddTable(Style style)
style
StyleThe table style.
Adds a Table to the end of the cell.
public Table AddTable(int columns, int rows, Style style)
columns
intThe number of columns in the new table.
rows
intThe number of rows in the new table.
style
StyleThe table style.
Adds a Table to the end of the cell.
public Table AddTable(int columns, int rows)
columns
intThe number of columns in the new table.
rows
intThe number of rows in the new table.
Adds a Table to the end of the cell.
public Table AddTable(string[][] texts, Style style)
texts
string[][]A two dimensional array of texts to put in the cells. The first dimension determines the number of rows, the second the number of cells.
style
StyleThe table style.
Adds a Table to the end of the cell.
public Table AddTable(string[][] texts)
texts
string[][]A two dimensional array of texts to put in the cells. The first dimension determines the number of rows, the second the number of cells.