SpreadJS Documentation
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 style for a border side.
Syntax
var instance = new GcSpread.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 GcSpread.Sheets.LineBorder
border.color = "#7FFFD4";
border.style = GcSpread.Sheets.LineStyle.double;
var cell = activeSheet.getCell(1, 1, GcSpread.Sheets.SheetArea.viewport);
cell.borderLeft(border);
See Also

Reference

LineBorder type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.