setText

abstract fun setText(colNum: Int, value: String?)

Parameters

colNum

the index into the row (0 based)

value

the value to set, will throw an exception if the cell is not TEXT


abstract fun setText(data: Array<String?>): Int

Sets the text columns according to the data in the array. If the array has more elements than the number of columns, then the columns are filled with first elements of the array up to the number of columns. If the array has less elements than the number of columns, then only the first data.length columns are set.

Return

the number of columns that were set

Parameters

data

an array of data for the text rows. The array must not be null.


abstract fun setText(data: List<String?>): Int

Sets the text columns according to the data in the list. If the list has more elements than the number of columns, then the columns are filled with first elements of the list up to the number of columns. If the list has less elements than the number of columns, then only the first data.size() columns are set.

Return

the number of columns that were set

Parameters

data

a list of data for the text rows. The list must not be null.


abstract fun setText(columnName: String, value: String?)

Parameters

columnName

the name of the column to set

value

the value to set