TableRowScope
class TableRowScope
Receiver of header { ... } and row { ... } inside a TableScope.
Adds TableCellNodes to the row in column order. Two convenience cell overloads exist: a string-only one for plain text cells and a fully- configurable one that opens a ContainerScope block.
Functions
Link copied to clipboard
fun cell(verticalAlignment: VerticalAlignment = VerticalAlignment.Top, horizontalAlignment: HorizontalAlignment = HorizontalAlignment.Start, background: PdfColor? = null, padding: Padding? = null, colSpan: Int = 1, rowSpan: Int = 1, block: ContainerScope.() -> Unit)
Adds a configurable cell whose contents are described inside block.
fun cell(value: String, verticalAlignment: VerticalAlignment = VerticalAlignment.Top, horizontalAlignment: HorizontalAlignment = HorizontalAlignment.Start, background: PdfColor? = null, padding: Padding? = null, colSpan: Int = 1, rowSpan: Int = 1, textBlock: TextScope.() -> Unit = {})
Adds a simple text cell.