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

Parameters

value
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.
Example
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());
Remarks
The default value is Arial 12 pt.
See Also

Reference

TouchToolStripItem class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.