SpreadJS 14
GC.Spread.Sheets.CellTypes Namespace / RadioButtonList type / textAlign Method
the text of radio button's position.
In This Topic
    textAlign Method
    In This Topic
    Gets or sets the text of radio button's position, only support left and right .
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.RadioButtonList();
    var returnValue; // Type: any
    returnValue = instance.textAlign(value);
    function textAlign( 
       value : TextAlign
    ) : any;

    Parameters

    value
    the text of radio button's position.

    Return Value

    If no value is set, returns the text of radio button's position, returns the radio button list cellType.
    Example
    //This example creates a radio button list cell.
    var cellType2 = new GC.Spread.Sheets.CellTypes.RadioButtonList();
    cellType2.items([{text:"a",value:1},{text:"b",value:2},{text:"c",value:3}]);
    cellType2.textAlign(GC.Spread.Sheets.CellTypes.TextAlign.left);
    activeSheet.getCell(2, 2).cellType(cellType2);
    See Also