如何实现复制一个单元格的批注到剪切板里,再使用上下文菜单的粘贴按钮的时候该批注会被粘贴到新的单元格上(没有批注的单元格生成批注,有批注的单元格新批注进行覆盖),有提供方法吗
const copyCellComment = (rowIndex: number, colIndex: number) => {
const spread = spreadRef.current;
if (!spread)
return;
const sheet = spread.getActiveSheet()
sheet.copy(rowIndex, colIndex,GC.Spread.Sheets.CopyToOptions.value)// ???
}
|
|