PdfTableColumn Class

A column of a PdfTable: its width and the alignment of its cells.

public sealed class PdfTableColumn

Constructors

NameDescription
PdfTableColumn()Initializes a new instance of the PdfTableColumn class, with an automatic width.
PdfTableColumn(PdfTableColumnWidth, PdfTextAlignment)Initializes a new instance of the PdfTableColumn class.

PdfTableColumn overloads

PdfTableColumn()

PdfTableColumn.cs

Initializes a new instance of the PdfTableColumn class, with an automatic width.

public PdfTableColumn()

PdfTableColumn(PdfTableColumnWidth, PdfTextAlignment)

PdfTableColumn.cs

Initializes a new instance of the PdfTableColumn class.

public PdfTableColumn(PdfTableColumnWidth width, PdfTextAlignment alignment = PdfTextAlignment.Left)
Parameters
width PdfTableColumnWidth
The width of the column.
alignment PdfTextAlignment
The horizontal alignment of the text of its cells.

Properties

NameDescription
AlignmentGets or sets the horizontal alignment of the text of the cells of the column, unless a cell sets its own. The default is PdfTextAlignment.Left.
WidthGets or sets the width of the column. The default is PdfTableColumnWidth.Auto.

Gets or sets the horizontal alignment of the text of the cells of the column, unless a cell sets its own. The default is PdfTextAlignment.Left.

public PdfTextAlignment Alignment { get; set; }

Property value

PdfTextAlignment

Gets or sets the width of the column. The default is PdfTableColumnWidth.Auto.

public PdfTableColumnWidth Width { get; set; }

Property value

PdfTableColumnWidth