GC.Spread.Sheets.Touch Namespace > TouchToolStripItem class : foreColor Method |
var instance = new GC.Spread.Sheets.Touch.TouchToolStripItem(name, text, image, command, canExecute); var returnValue; // Type: any returnValue = instance.foreColor(value);
function foreColor( value : string ) : any;
<input type="button" id="button1" value="button1"/> 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()); $("#button1").click(function () { spread.touchToolStrip.remove("Cut"); activeSheet.resumePaint(); activeSheet.repaint(); });