[]
        
(Showing Draft Content)

GC.Spread.Sheets.LineBorder

Class: LineBorder

Spread.Sheets.LineBorder

Table of contents

Constructors

Properties

Constructors

constructor

new LineBorder(color?, style?)

Represents the line border for a border side.

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);

Parameters

Name Type
color? string
style? LineStyle

Properties

color

color: string

Indicates the color of the border line. Use a known color name or HEX style color value. The default value is black.

example

//This example sets the color property.
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);

style

style: LineStyle

Indicates the line style of the border line. The default value is empty.

example

//This example sets the style property.
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);