SpreadJS 14
GC.Spread.Sheets Namespace / CellRange type / borderTop Method
The cell top border line.
In This Topic
    borderTop Method
    In This Topic
    Gets or sets the top border of the cell.
    var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
    var returnValue; // Type: any
    returnValue = instance.borderTop(value);
    function borderTop( 
       (optional) value : LineBorder
    ) : any;


    The cell top border line.

    Return Value

    If no value is set, returns the cell top border line; otherwise, returns the cell.
    The following examples create a border.
    activeSheet.getRange(2, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).borderTop(new GC.Spread.Sheets.LineBorder("green", GC.Spread.Sheets.LineStyle.mediumDashed));
    activeSheet.getCell(1,1).borderTop(new GC.Spread.Sheets.LineBorder("red", GC.Spread.Sheets.LineStyle.double));
    activeSheet.getRange(-1, 3, -1, 1, GC.Spread.Sheets.SheetArea.viewport).borderTop(new GC.Spread.Sheets.LineBorder("blue", GC.Spread.Sheets.LineStyle.mediumDashed));
    See Also


    CellRange type