zplCore.comzplCore.com

TableItem

public sealed class TableItem : LabelItem

Table with fixed columns/rows; cells may contain [Field] placeholders.

Constructors

SignatureDescription
# TableItem()

Properties

PropertyTypeDescription
Alignment { get; set; }TextAlignment
CellPadding { get; set; }double
Cells { get; set; }List<List<string>>Cell texts, row by row. "[Name]" is replaced by the bound field value.
ColumnFills { get; set; }List<ItemColor>Fill per column (index = column), applied where the row has no fill.
ColumnWidths { get; set; }List<double>Column widths in label units.
CornerRounding { get; set; }intCorner rounding of the outer frame, 0–8 like ^GB (only when all four sides are shown).
Font { get; set; }string
FontSize { get; set; }double
HeaderRow { get; set; }boolFirst row bold/inverted as header.
RowFills { get; set; }List<ItemColor>Fill per row (index = row); black rows print their text white.
RowHeights { get; set; }List<double>Row heights in label units.
ShowBottom { get; set; }bool
ShowColumnLines { get; set; }boolVertical lines between columns.
ShowLeft { get; set; }boolOuter border sides.
ShowRight { get; set; }bool
ShowRowLines { get; set; }boolHorizontal lines between rows.
ShowTop { get; set; }bool
StrokeThickness { get; set; }double

Methods

Method SignatureReturnsDescription
# ToZpl(ZplContext ctx)string