java.lang.Object
com.aspose.cells.Border
public class Border
- extends java.lang.Object
Encapsulates the object that represents the cell border.
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);
Property Getters/Setters Detail |
getThemeColor/setThemeColor | |
public ThemeColor getThemeColor() / public void setThemeColor(ThemeColor value)
|
-
Gets and sets the theme color of the border.
getColor/setColor | |
public com.aspose.cells.Color getColor() / public void setColor(com.aspose.cells.Color value)
|
-
Gets or sets the com.aspose.cells.Color of the border.
getArgbColor/setArgbColor | |
public int getArgbColor() / public void setArgbColor(int value)
|
-
Gets and sets the color with a 32-bit ARGB value.
getLineStyle/setLineStyle | |
public int getLineStyle() / public void setLineStyle(int value)
|
-
Gets or sets the cell border type.
The value of the property is CellBorderType integer constant.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.