/** * Return the cell's style. * * @return the cell's style.</code> */ public static CTCellStyle getCellStyle(Cell _cell) { Styles stylesPart = _cell.getWorksheetPart().getWorkbookPart().getStylesPart(); CTXf xf = stylesPart.getXfByIndex(_cell.getS()); if (xf == null) { throw new RuntimeException("xf unexpectedly null"); } return stylesPart.getStyleByIndex(xf.getXfId()); }
/** * Return the cell's style. * * @return the cell's style.</code> */ public static CTCellStyle getCellStyle(Cell _cell) { Styles stylesPart = _cell.getWorksheetPart().getWorkbookPart().getStylesPart(); CTXf xf = stylesPart.getXfByIndex(_cell.getS()); if (xf == null) { throw new RuntimeException("xf unexpectedly null"); } return stylesPart.getStyleByIndex(xf.getXfId()); }
CellXfs cellXfs = new CellXfs(xf.getXfId(), xf.getNumFmtId(), xf.getFontId(),
CellXfs cellXfs = new CellXfs(xf.getXfId(), xf.getNumFmtId(), xf.getFontId(),