CellStyle

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)(source)

Styling class for cells.

Constructors

Link copied to clipboard
constructor(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, numberFormat: NumFormat = NumFormat.standard_0)

Properties

Link copied to clipboard

Get background color.

Link copied to clipboard

Get/set bottom border.

Link copied to clipboard

Get/set diagonal border.

Link copied to clipboard

Get/set diagonal border down.

Link copied to clipboard

Get/set diagonal border up.

Link copied to clipboard

Get font color.

Link copied to clipboard

Get/set font family.

Link copied to clipboard

Get/set font scheme.

Link copied to clipboard

Get/set font size.

Link copied to clipboard

Get/set horizontal alignment.

Link copied to clipboard

Get/set bold.

Link copied to clipboard

Get/set italic.

Link copied to clipboard

Get/set left border.

Link copied to clipboard
Link copied to clipboard

Get/set right border.

Link copied to clipboard

Get/set rotation. Valid range is -90, 90. Out-of-range values are clamped to 0. Negative values are stored as abs(value) + 90 to match Excel's encoding.

Link copied to clipboard

Get/set top border.

Link copied to clipboard

Get/set underline.

Link copied to clipboard

Get/set vertical alignment.

Link copied to clipboard

Get/set text wrapping.

Functions

Link copied to clipboard
fun copyWith(fontColorHexVal: ExcelColor? = null, backgroundColorHexVal: ExcelColor? = null, fontFamilyVal: String? = null, fontSchemeVal: FontScheme? = null, horizontalAlignVal: HorizontalAlign? = null, verticalAlignVal: VerticalAlign? = null, textWrappingVal: TextWrapping? = null, boldVal: Boolean? = null, italicVal: Boolean? = null, underlineVal: Underline? = null, fontSizeVal: Int? = null, rotationVal: Int? = null, leftBorderVal: Border? = null, rightBorderVal: Border? = null, topBorderVal: Border? = null, bottomBorderVal: Border? = null, diagonalBorderVal: Border? = null, diagonalBorderUpVal: Boolean? = null, diagonalBorderDownVal: Boolean? = null, numberFormat: NumFormat? = null): CellStyle
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int