https://issues.apache.org/bugzilla/show_bug.cgi?id=48344
--- Comment #14 from Denis Kurochkin <[email protected]> 2011-10-10 20:48:18 UTC --- (In reply to comment #12) > (In reply to comment #9) > > In reopened file: > > sheet.getRow(2).getRowStyle(); // returns style which defined previosly by > > setRowStyle(). > > style = sheet.getRow(2).getCell(0).getCellStyle(); // returns default > > workbook > > style > > If you set a style on a row in Excel, what gets written for the cell styles > for > cells with the default style? Does excel go through and change all the cells > in > the row, or does it just inherit? If I set a style on a row Excel sets same style for each cell in this row. Iterate over all cells in a row shows that cells with default style have style equivalent to style of row: rowstyle.getIndex()==stylecell.getIndex() -> true rowstyle.equals(cellstyle) -> true rowstyle.hashCode()==cellstyle.hashCode -> true -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
