SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / ButtonList type / selectedForeColor Method
The selected buttonList's fore color.
In This Topic
    selectedForeColor Method
    In This Topic
    Gets or sets the selected buttonList's fore color.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.ButtonList();
    var returnValue; // Type: any
    returnValue = instance.selectedForeColor(value);
    function selectedForeColor( 
       value : string
    ) : any;

    Parameters

    value
    The selected buttonList's fore color.

    Return Value

    If no value is set, returns the fore color; otherwise, returns the buttonList cell type.
    Example
    //This example creates a buttonList cell.
    var cellType = new GC.Spread.Sheets.CellTypes.ButtonList();
    cellType.selectedForeColor("#FFFF00");
    activeSheet.getCell(0, 2).cellType(cellType);
    See Also

    Reference

    ButtonList type