Spread.Sheets Documentation
foreColor Method
The color of the toolbar item text.
Gets or sets the color of the item text.
Syntax
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;

Parameters

value
The color of the toolbar item text.

Return Value

If no value is set, returns the color of the item text; otherwise, returns the toolbar item.
Example
This example adds a delete image with red text.
<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();
    });
See Also

Reference

TouchToolStripItem class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.