displayText property

String get displayText

Gets cell value text with its number format. Read-only.

Workbook workbook = new Workbook();
Worksheet sheet = workbook.worksheets[0];
Range range = sheet.getRangeByName('A1');
range.value = '1/1/2015';
range.numberFormat = 'dd-MMM-yyyy';
String displayText = range.displayText;
List<int> bytes = workbook.saveAsStream();
File('DisplayText.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

String get displayText {
  return getDisplayText(row, column);
}