Cell

data class Cell(lines: List<String>)

This class represents one cell of table row. Cell may consist of multiple lines. This class is used to simplify the handling of formatting of the rows.

Constructors

Cell
Link copied to clipboard
fun Cell(line: String)
Cell
Link copied to clipboard
fun Cell(lines: List<String>)

Properties

lines
Link copied to clipboard
val lines: List<String>

list of lines of the cell. Usually it is a list with one element.

width
Link copied to clipboard
val width: Int

Calculate the width of the cell. It is the maximum length of all the lines in the cell. If cell has no lines, returns 0.