Spread.Sheets Documentation
TouchToolStripSeparator Constructor
GC.Spread.Sheets.Touch Namespace > TouchToolStripSeparator class : TouchToolStripSeparator Constructor
- Defines when to display the separator with a function. If returns true, display the separator; otherwise, hide the separator.
Represents a separator in the toolbar.
Syntax
var instance = new GC.Spread.Sheets.Touch.TouchToolStripSeparator(canExecute);
function TouchToolStripSeparator( 
   canExecute : boolean
) : TouchToolStripSeparator;

Parameters

canExecute
- Defines when to display the separator with a function. If returns true, display the separator; otherwise, hide the separator.
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());
See Also

Reference

TouchToolStripSeparator class