Posted 13 April 2026, 9:08 am EST
Hi, wondering if SpreadJs has support for single/double accounting underlines?
Forums Home / Spread / SpreadJS
Posted by: yijia on 13 April 2026, 9:08 am EST
Posted 13 April 2026, 9:08 am EST
Hi, wondering if SpreadJs has support for single/double accounting underlines?
Posted 14 April 2026, 2:41 am EST
Hi,
SpreadJS does support both single and double underlines.
These are available via the GC.Spread.Sheets.TextDecorationType enumeration. Here’s a quick overview of the relevant options:
• underline — Displays a single line below the text.
• doubleUnderline — Displays a double line below the text, ideal for grand totals in financial reports.
Here’s a quick code example to apply them:
// Single underline
activeSheet.getCell(0, 0).textDecoration(GC.Spread.Sheets.TextDecorationType.underline);
// Double underline
activeSheet.getCell(1, 0).textDecoration(GC.Spread.Sheets.TextDecorationType.doubleUnderline);
You can also combine decoration types using the bitwise OR operator (|), for example, pairing an overline with an underline.
For full details, you can refer to the official API documentation here:
https://developer.mescius.com/spreadjs/api/enums/GC.Spread.Sheets.TextDecorationType
Regards,
Priyam
Posted 14 April 2026, 9:05 am EST
Hi Priyam, I specifically am referring to single/ double accounting underlines - this is different from just single / double underlining: https://a4accounting.com.au/single-accounting-underline/
Posted 15 April 2026, 3:01 am EST
Hi,
Apologies for misunderstanding the requirement.
We have checked this, and it is currently not supported. However, it is already in our product backlog under the internal ID SJS-12519. It is expected to be released in version 19.1.0, which is tentatively planned for the end of April 2026. I will update you as soon as any information becomes available.
Regards,
Priyam
Posted 21 April 2026, 1:37 pm EST
Hi Priyam - wondering if this is still on track to be released!
Posted 22 April 2026, 2:31 am EST
Hi,
Yes, it is on track to be released with version 19.1.0 and is expected by the end of April 2026. We will update you as soon as we receive any information.
Regards,
Priyam
Posted 22 April 2026, 1:18 pm EST
thanks, also looking forward to this