SpreadJS Documentation
GC.Spread.Sheets Namespace / CellTypes type / TextAlign Field
In This Topic
    TextAlign Field
    In This Topic
    Specifies the text alignment for check box cells.
    Syntax
    var value; // Type: TextAlign
    value = GC.Spread.Sheets.CellTypes.TextAlign;
    var TextAlign : TextAlign;
    Example
    //This example creates a check box cell.
    var cellType = new GC.Spread.Sheets.CellTypes.RadioButtonList();
    cellType.items([{text:"a",value:1},{text:"b",value:2},{text:"c",value:3}]);
    cellType.textAlign(GC.Spread.Sheets.CellTypes.TextAlign.left);
    activeSheet.getCell(2, 2).cellType(cellType);
    See Also

    Reference

    CellTypes type