I need to check the text format of a cell in .xlsx file (Microsoft Excel file) is strike through or not using Apache POI libraries.
Look following Image
I need to check whether B3 Cell text is strike through or not.
I need to check the text format of a cell in .xlsx file (Microsoft Excel file) is strike through or not using Apache POI libraries.
Look following Image
I need to check whether B3 Cell text is strike through or not.
Finally I found a way to do this, code as follow
Like this:
XSSFRichTextString
from the cell usingXSSFCell#getRichStringCellValue()
XSSFFont
at a specific position usingXSSFRichTextString#getFontAtIndex(int index)
XSSFFont#getStrikeout()
Not sure how you get a reference to it but there's HSSFont.getStrikeout() and XSSFFont.getStrikeout()