Border
Contents
[
Hide
]Border class
Encapsulates the object that represents the cell border.
class Border;
Example
const { Workbook, BorderType, CellBorderType, Color } = require("aspose.cells.node");
var workbook = new 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().get(BorderType.TopBorder);
border.setLineStyle(CellBorderType.Medium);
border.setColor(Color.Red);
cell.setStyle(style);
Methods
Method | Description |
---|---|
getThemeColor() | Gets and sets the theme color of the border. |
setThemeColor(ThemeColor) | Gets and sets the theme color of the border. |
getColor() | Gets or sets the Color of the border. |
setColor(Color) | Gets or sets the Color of the border. |
getArgbColor() | Gets and sets the color with a 32-bit ARGB value. |
setArgbColor(number) | Gets and sets the color with a 32-bit ARGB value. |
getLineStyle() | Gets or sets the cell border type. |
setLineStyle(CellBorderType) | Gets or sets the cell border type. |
isNull() | Checks whether the implementation object is null. |
getThemeColor()
Gets and sets the theme color of the border.
getThemeColor() : ThemeColor;
Returns
setThemeColor(ThemeColor)
Gets and sets the theme color of the border.
setThemeColor(value: ThemeColor) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | ThemeColor | The value to set. |
getColor()
Gets or sets the Color of the border.
getColor() : Color;
Returns
setColor(Color)
Gets or sets the Color of the border.
setColor(value: Color) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | The value to set. |
getArgbColor()
Gets and sets the color with a 32-bit ARGB value.
getArgbColor() : number;
setArgbColor(number)
Gets and sets the color with a 32-bit ARGB value.
setArgbColor(value: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
getLineStyle()
Gets or sets the cell border type.
getLineStyle() : CellBorderType;
Returns
setLineStyle(CellBorderType)
Gets or sets the cell border type.
setLineStyle(value: CellBorderType) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | CellBorderType | The value to set. |
isNull()
Checks whether the implementation object is null.
isNull() : boolean;