var instance = new GC.Spread.Sheets.Touch.TouchToolStrip(workbook, host); var value; // Type: TouchToolStripItem value = instance.remove(name);
function remove( name : string ) : TouchToolStripItem;
パラメータ
- name
- 削除する項目の名前。
戻り値の型
削除された項目。
var instance = new GC.Spread.Sheets.Touch.TouchToolStrip(workbook, host); var value; // Type: TouchToolStripItem value = instance.remove(name);
function remove( name : string ) : TouchToolStripItem;
<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(); });
<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(); });