SpreadJS Documentation
font Method
The font of the toolbar item text.
The font of the item text.
Syntax
var instance = new GcSpread.Sheets.TouchToolStripItem(name, text, image, command, canExecute);
var returnValue; // Type: any
returnValue = instance.font(value);
function font( 
   value : string
) : any;

Parameters

value
The font of the toolbar item text.

Return Value

If called without a parameter, returns the current item text font; otherwise, returns the current item object.
Example
This example adds a delete image with red text.
spread.touchToolStrip.add(new GcSpread.Sheets.TouchToolStripItem("Cut", "Delete", "cut.png", function(){ }))
spread.touchToolStrip.getItem("Cut").font("15px Arial").foreColor("red");
spread.touchToolStrip.add(new GcSpread.Sheets.TouchToolStripSeparator());
Remarks
The default value is Arial 12 pt.
See Also

Reference

TouchToolStripItem type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.