Example:
workbook = Workbook() worksheet = workbook.getWorksheets().get(0) cell = worksheet.getCells().get(0, 0) style = workbook.createStyle() # Set top border style and color border = style.getBorders().getByBorderType(BorderType.TOP_BORDER) border.setLineStyle(CellBorderType.MEDIUM) border.setColor(Color.getRed()) cell.setStyle(style)
Property Getters/Setters Summary | ||
---|---|---|
method | getArgbColor() | |
method | setArgbColor(value) | |
Gets and sets the color with a 32-bit ARGB value. | ||
method | getColor() | |
method | setColor(value) | |
Gets or sets the |
||
method | getLineStyle() | |
method | setLineStyle(value) | |
Gets or sets the cell border type. The value of the property is CellBorderType integer constant. | ||
method | getThemeColor() | |
method | setThemeColor(value) | |
Gets and sets the theme color of the border. |
ThemeColor getThemeColor() / setThemeColor(value)
Color getColor() / setColor(value)
int getArgbColor() / setArgbColor(value)
int getLineStyle() / setLineStyle(value)