PdfTableColumn Class
A column of a PdfTable: its width and the alignment of its cells.
public sealed class PdfTableColumnConstructors
| Name | Description |
|---|---|
| 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.csInitializes a new instance of the PdfTableColumn class, with an automatic width.
public PdfTableColumn()PdfTableColumn(PdfTableColumnWidth, PdfTextAlignment)
PdfTableColumn.csInitializes a new instance of the PdfTableColumn class.
public PdfTableColumn(PdfTableColumnWidth width, PdfTextAlignment alignment = PdfTextAlignment.Left)Parameters
widthPdfTableColumnWidth- The width of the column.
alignmentPdfTextAlignment- The horizontal alignment of the text of its cells.
Properties
| Name | Description |
|---|---|
| Alignment | 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. |
| Width | Gets or sets the width of the column. The default is PdfTableColumnWidth.Auto. |
Alignment
PdfTableColumn.csGets 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
Width
PdfTableColumn.csGets or sets the width of the column. The default is PdfTableColumnWidth.Auto.
public PdfTableColumnWidth Width { get; set; }