public class Border
extends java.lang.Object
Example
Workbook workbook = new Workbook();
WorksheetCollection sheets = workbook.getWorksheets();
Cell cell = sheets.get(0).getCells().get("A1");
Style style = cell.getStyle();
//Set top border style and color
Border border = style.getBorders().getByBorderType(BorderType.TOP_BORDER);
border.setLineStyle(CellBorderType.MEDIUM);
border.setColor(Color.getRed());
cell.setStyle(style);
| Modifier and Type | Method and Description |
|---|---|
int |
getArgbColor()
Gets the color with a 32-bit ARGB value.
|
Color |
getColor()
Gets the
Color of the border. |
int |
getLineStyle()
Gets the cell border type.
|
ThemeColor |
getThemeColor()
Gets the theme color of the border.
|
void |
setArgbColor(int value)
Sets the color with a 32-bit ARGB value.
|
void |
setColor(Color value)
Sets the
Color of the border. |
void |
setLineStyle(int value)
Sets the cell border type.
|
void |
setThemeColor(ThemeColor value)
Sets the theme color of the border.
|
public ThemeColor getThemeColor()
public void setThemeColor(ThemeColor value)
public int getArgbColor()
public void setArgbColor(int value)
public int getLineStyle()
See CellBorderType.
public void setLineStyle(int value)
See CellBorderType.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.