Package-level declarations

The worksheet model: Sheet, the CellValue sealed hierarchy, CellStyle, Border/BorderStyle, CellIndex for "A1"(column, row) conversion, and the per-cell Data wrapper.

Types

Link copied to clipboard
class BoolCellValue(val value: Boolean) : CellValue
Link copied to clipboard
class Border(borderStyle: BorderStyle? = null, borderColorHex: ExcelColor? = null)
Link copied to clipboard
Link copied to clipboard
class CellIndex
Link copied to clipboard
class CellStyle(fontColorHex: ExcelColor = ExcelColor.black, backgroundColorHex: ExcelColor = ExcelColor.none, fontSize: Int? = null, fontFamily: String? = null, fontScheme: FontScheme? = null, horizontalAlign: HorizontalAlign = Left, verticalAlign: VerticalAlign = VerticalAlign.Bottom, textWrapping: TextWrapping? = null, bold: Boolean = false, italic: Boolean = false, underline: Underline = None, rotation: Int = 0, leftBorder: Border? = null, rightBorder: Border? = null, topBorder: Border? = null, bottomBorder: Border? = null, diagonalBorder: Border? = null, diagonalBorderUp: Boolean = false, diagonalBorderDown: Boolean = false, var numberFormat: NumFormat = NumFormat.standard_0)

Styling class for cells.

Link copied to clipboard
sealed class CellValue
Link copied to clipboard
class Data
Link copied to clipboard
class DateCellValue(val year: Int, val month: Int, val day: Int) : CellValue
Link copied to clipboard
class DateTimeCellValue(val year: Int, val month: Int, val day: Int, val hour: Int, val minute: Int, val second: Int = 0, val millisecond: Int = 0, val microsecond: Int = 0) : CellValue

Excel does not know if this is UTC or not. Use asDateTimeLocal or asDateTimeUtc to get the LocalDateTime you prefer.

Link copied to clipboard
class DoubleCellValue(val value: Double) : CellValue
Link copied to clipboard
Link copied to clipboard
class FormulaCellValue(val formula: String) : CellValue
Link copied to clipboard
class HeaderFooter(var alignWithMargins: Boolean?, var differentFirst: Boolean?, var differentOddEven: Boolean?, var scaleWithDoc: Boolean?, var evenFooter: String?, var evenHeader: String?, var firstFooter: String?, var firstHeader: String?, var oddFooter: String?, var oddHeader: String?)
Link copied to clipboard
class IntCellValue(val value: Long) : CellValue
Link copied to clipboard
class Sheet
Link copied to clipboard
Link copied to clipboard
class TimeCellValue(val hour: Int = 0, val minute: Int = 0, val second: Int = 0, val millisecond: Int = 0, val microsecond: Int = 0) : CellValue

Functions

Link copied to clipboard
Link copied to clipboard
fun getFontFamily(fontFamily: FontFamily): String

Returns the human-readable font family name for the given FontFamily. e.g. FontFamily.Arial_Narrow"Arial Narrow"