SpreadJS Documentation
LineBorder Constructor
GC.Spread.Sheets Namespace > LineBorder type : LineBorder Constructor
Indicates the border color and uses a format such as color name (for example, "red") or "#RGB", "#RRGGBB", "rgb(R,B,B)", "rgba(R,G,B,A)".
Indicates the border line style.
Represents the line border for a border side.
Syntax
var instance = new GC.Spread.Sheets.LineBorder(color, style);
function LineBorder( 
   color : string,
   style : LineStyle
) : LineBorder;

Parameters

color
Indicates the border color and uses a format such as color name (for example, "red") or "#RGB", "#RRGGBB", "rgb(R,B,B)", "rgba(R,G,B,A)".
style
Indicates the border line style.
Example
This example creates a border.
var border = new GC.Spread.Sheets.LineBorder
border.color = "#7FFFD4";
border.style = GC.Spread.Sheets.LineStyle.double;
var cell = activeSheet.getCell(1, 1, GC.Spread.Sheets.SheetArea.viewport);
cell.borderLeft(border);
See Also

Reference

LineBorder type