开发者

Detecting struckout text in a cell using JExcelApi

开发者 https://www.devze.com 2022-12-15 11:15 出处:网络
I need to detect whether the text within a cell is struck out or not. I\'m using this: Cell cc = sheet.getCell(\"B1\");

I need to detect whether the text within a cell is struck out or not. I'm using this:

Cell cc = sheet.getCell("B1");
CellFormat format = cc.getCellFormat();
System.out.println(format.getFont().isStruckout());

but I remember I read somewhere that CellFormat is deprecated and CellFeatures should be used i开发者_StackOverflow中文版nstead. How could one find out whether a text is struck out using CellFeatures?


Somehow I don't think that's true (but cite your source), as CellFormat and CellFeatures don't really have anything in common.

Maybe you were thinking of jxl.CellFormat is deprecated in favor of jxl.format.CellFormat?

0

精彩评论

暂无评论...
验证码 换一张
取 消