Border
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.worksheets.get(0);
var cell = worksheet.cells.get(0, 0);
var style = workbook.createStyle();
//Set top border style and color
var border = style.borders.get(BorderType.TopBorder);
border.lineStyle = CellBorderType.Medium;
border.color = Color.Red;
cell.setStyle(style);
Properties
Property | Type | Description |
---|---|---|
themeColor | ThemeColor | Gets and sets the theme color of the border. |
color | Color | Gets or sets the Color of the border. |
argbColor | number | Gets and sets the color with a 32-bit ARGB value. |
lineStyle | CellBorderType | Gets or sets the cell border type. |
Methods
Method | Description |
---|---|
getThemeColor() | @deprecated. Please use the ’themeColor’ property instead. Gets and sets the theme color of the border. |
setThemeColor(ThemeColor) | @deprecated. Please use the ’themeColor’ property instead. Gets and sets the theme color of the border. |
getColor() | @deprecated. Please use the ‘color’ property instead. Gets or sets the Color of the border. |
setColor(Color) | @deprecated. Please use the ‘color’ property instead. Gets or sets the Color of the border. |
getArgbColor() | @deprecated. Please use the ‘argbColor’ property instead. Gets and sets the color with a 32-bit ARGB value. |
setArgbColor(number) | @deprecated. Please use the ‘argbColor’ property instead. Gets and sets the color with a 32-bit ARGB value. |
getLineStyle() | @deprecated. Please use the ’lineStyle’ property instead. Gets or sets the cell border type. |
setLineStyle(CellBorderType) | @deprecated. Please use the ’lineStyle’ property instead. Gets or sets the cell border type. |
isNull() | Checks whether the implementation object is null. |
themeColor
Gets and sets the theme color of the border.
themeColor : ThemeColor;
color
Gets or sets the Color of the border.
color : Color;
argbColor
Gets and sets the color with a 32-bit ARGB value.
argbColor : number;
lineStyle
Gets or sets the cell border type.
lineStyle : CellBorderType;
getThemeColor()
@deprecated. Please use the ’themeColor’ property instead. Gets and sets the theme color of the border.
getThemeColor() : ThemeColor;
Returns
setThemeColor(ThemeColor)
@deprecated. Please use the ’themeColor’ property instead. Gets and sets the theme color of the border.
setThemeColor(value: ThemeColor) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | ThemeColor | The value to set. |
getColor()
@deprecated. Please use the ‘color’ property instead. Gets or sets the Color of the border.
getColor() : Color;
Returns
setColor(Color)
@deprecated. Please use the ‘color’ property instead. Gets or sets the Color of the border.
setColor(value: Color) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | The value to set. |
getArgbColor()
@deprecated. Please use the ‘argbColor’ property instead. Gets and sets the color with a 32-bit ARGB value.
getArgbColor() : number;
setArgbColor(number)
@deprecated. Please use the ‘argbColor’ property instead. 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()
@deprecated. Please use the ’lineStyle’ property instead. Gets or sets the cell border type.
getLineStyle() : CellBorderType;
Returns
setLineStyle(CellBorderType)
@deprecated. Please use the ’lineStyle’ property instead. 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;