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. |
Property Getters/Setters Detail |
---|
getThemeColor/setThemeColor : ThemeColor | |
ThemeColor getThemeColor() / setThemeColor(value) |
getColor/setColor : Color | |
Color getColor() / setColor(value) |
getArgbColor/setArgbColor : int | |
int getArgbColor() / setArgbColor(value) |
getLineStyle/setLineStyle : int | |
int getLineStyle() / setLineStyle(value) |