[]
        
(Showing Draft Content)

GC.Spread.Sheets.PasteOperationOptions

枚举: PasteOperationOptions

Spread.Sheets.PasteOperationOptions

指定操作选项,在复制范围和粘贴范围之间以数学方式进行值的合并

代码示例

//This example uses the PasteOperationOptions enumeration.
activeSheet.getCell(0,0).value("1");
activeSheet.setSelection(0, 0, 1, 1);
spread.commandManager().execute({cmd:"copy", sheetName: activeSheet.name()});
activeSheet.setSelection(0, 0, 3, 3);
spread.commandManager().execute(
    {
        cmd:"paste",
        sheetName: activeSheet.name(),
        pasteSpecialOptions: {
            operationOptions: GC.Spread.Sheets.PasteOperationOptions.add
        }
    }
);

Table of contents

枚举值成员

枚举值成员

add

add = 1

将复制范围中的值加上粘贴范围中的值


divide

divide = 4

将粘贴范围中的值除以复制范围中的值


multiply

multiply = 3

将粘贴范围中的值乘以复制范围中的值


none

none = 0

将复制范围的内容粘贴到目标区域,不执行任何操作


subtract

subtract = 2

将粘贴范围中的值减去复制范围中的值