SpreadJS 13
GC.Spread.Sheets.Touch Namespace / TouchToolStripItem class / font Method
The font of the toolbar item text.
In This Topic
    font Method
    In This Topic
    Gets or sets the font of the item text.
    var instance = new GC.Spread.Sheets.Touch.TouchToolStripItem(name, text, image, command, canExecute);
    var returnValue; // Type: any
    returnValue = instance.font(value);
    function font( 
       value : string
    ) : any;


    The font of the toolbar item text.

    Return Value

    If no value is set, returns the font of the item text; otherwise, returns the toolbar item.
    This example adds a delete image with red text.
    spread.touchToolStrip.add(new GC.Spread.Sheets.Touch.TouchToolStripItem("Cut", "Delete", "cut.png", function(){ }))
    spread.touchToolStrip.getItem("Cut").font("15px Arial").foreColor("red");
    spread.touchToolStrip.add(new GC.Spread.Sheets.Touch.TouchToolStripSeparator());
    The default value is Arial 12 pt.
    See Also