var instance = new GC.Spread.Sheets.Touch.TouchToolStrip(workbook, host); var value; // Type: any value = instance.getItem(name);
function getItem( name : string ) : any;
パラメータ
- name
- 項目名。
戻り値の型
指定した項目がツールバーに存在する場合はその項目を返し、存在しない場合はundefinedを返します。
var instance = new GC.Spread.Sheets.Touch.TouchToolStrip(workbook, host); var value; // Type: any value = instance.getItem(name);
function getItem( name : string ) : any;
<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(); });