TableCellStyle

data class TableCellStyle(val padding: Padding = Padding.all(Dp(8f)), val verticalAlignment: VerticalAlignment = VerticalAlignment.Top, val horizontalAlignment: HorizontalAlignment = HorizontalAlignment.Start, val background: PdfColor? = null)

Per-cell visual style. Defaults are sensible for body cells; the com.conamobile.pdfkmp.dsl.TableScope.header DSL applies its own sensible defaults on top.

Constructors

Link copied to clipboard
constructor(padding: Padding = Padding.all(Dp(8f)), verticalAlignment: VerticalAlignment = VerticalAlignment.Top, horizontalAlignment: HorizontalAlignment = HorizontalAlignment.Start, background: PdfColor? = null)

Properties

Link copied to clipboard
val background: PdfColor? = null

optional fill drawn behind the cell content. Overrides the row-level background for this cell only.

Link copied to clipboard

how the cell content is positioned along the column's horizontal axis when the column is wider than the content.

Link copied to clipboard

inset between the cell border and the content.

Link copied to clipboard

how the cell content is positioned along the row's vertical axis when the row is taller than the content.