PdfTableRow Class

A row of a PdfTable. The properties that are null take the value of the table.

public sealed class PdfTableRow

Constructors

NameDescription
PdfTableRow()Initializes a new instance of the PdfTableRow class, without cells.
PdfTableRow(ReadOnlySpan<string>)Initializes a new instance of the PdfTableRow class.

PdfTableRow overloads

PdfTableRow()

PdfTableRow.cs

Initializes a new instance of the PdfTableRow class, without cells.

public PdfTableRow()

PdfTableRow(ReadOnlySpan<string>)

PdfTableRow.cs

Initializes a new instance of the PdfTableRow class.

public PdfTableRow(params scoped ReadOnlySpan<string> cells)
Parameters
cells ReadOnlySpan<string>
The texts of the cells, one per column.

Properties

NameDescription
BackgroundGets or sets the color that fills the cells, or null for no background.
CellsGets the cells of the row, from the left. The columns after the last cell are empty.
FontGets or sets the font of the cells, or null for the font of the table.
FontSizeGets or sets the font size of the cells, or null for the font size of the table.
TextColorGets or sets the color of the text of the cells, or null for the color of the table.

Background

PdfTableRow.cs

Gets or sets the color that fills the cells, or null for no background.

public PdfColor? Background { get; set; }

Property value

PdfColor?

Gets the cells of the row, from the left. The columns after the last cell are empty.

public IList<PdfTableCell> Cells { get; }

Property value

IList<PdfTableCell>

Gets or sets the font of the cells, or null for the font of the table.

public PdfFont? Font { get; set; }

Property value

PdfFont?

Gets or sets the font size of the cells, or null for the font size of the table.

public double? FontSize { get; set; }

Property value

double?

Gets or sets the color of the text of the cells, or null for the color of the table.

public PdfColor? TextColor { get; set; }

Property value

PdfColor?

Methods

NameDescription
AddCell(string)Adds a cell at the end of the row.

AddCell(string)

PdfTableRow.cs

Adds a cell at the end of the row.

public PdfTableCell AddCell(string text)

Parameters

text string
The text of the cell.

Returns

PdfTableCell The cell, to set its properties.