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