1金币
我在使用designer表格设计器的命令实现复制粘贴、下划线功能时,前两个会报错,下划线没效果。虽然使用其他方法可以实现,但是我想知道为啥这种方式有问题
const commandName1 = GC.Spread.Sheets.Designer.CommandNames.Copy
GC.Spread.Sheets.Designer.getCommand(commandName1).execute(designer, undefined);
const commandName2 = GC.Spread.Sheets.Designer.CommandNames.Paste
GC.Spread.Sheets.Designer.getCommand(commandName2).execute(designer, undefined);
const commandName2 = GC.Spread.Sheets.Designer.CommandNames.FontUnderline
GC.Spread.Sheets.Designer.getCommand(commandName3).execute(designer, undefined);
|
|