var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: any value = instance.addCustomName(name, formula, baseRow, baseCol, comment);
パラメータ
- name
- カスタム名。
- formula
- 数式。
- baseRow
- 行インデックス。
- baseCol
- 列インデックス。
- comment
- コメント。
var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: any value = instance.addCustomName(name, formula, baseRow, baseCol, comment);
sheet.setValue(0, 0, 1); sheet.setValue(0, 1, 2); sheet.setValue(0, 2, 3); sheet.addCustomName("customName1","=12", 0, 0); sheet.addCustomName("customName2","Average(20,45)", 0, 0); sheet.addCustomName("customName3", "=$A$1:$C$1", 0, 0); sheet.setFormula(1, 0, "customName1"); sheet.setFormula(1, 1, "customName2"); sheet.setFormula(1, 2, "sum(customName3)");
sheet.setValue(0, 0, 1); sheet.setValue(0, 1, 2); sheet.setValue(0, 2, 3); sheet.addCustomName("customName1","=12", 0, 0); sheet.addCustomName("customName2","Average(20,45)", 0, 0); sheet.addCustomName("customName3", "=$A$1:$C$1", 0, 0); sheet.setFormula(1, 0, "customName1"); sheet.setFormula(1, 1, "customName2"); sheet.setFormula(1, 2, "sum(customName3)");