如何删除 excel table office.js 插件中的 header
how to delete the header in excel table office.js addin
我正在使用 office.js 开发办公室 add-in,我已经使用它添加了 table,现在我想清除 table,我尝试使用 deleteAllDataValuesAsync
方法,这只会删除数据而不是 header。
https://github.com/OfficeDev/office-js-docs/blob/master/reference/shared/binding.tablebinding.deletealldatavaluesasync.md
我正在尝试找出如何通过绑定或一般方式删除 table 中的 header
对于 Excel 2016 年及以后的版本,您可以结合使用绑定和 Table API:
首先对table对象使用Binding.getTable() method to retrieve the table object for the table associated with your binding. Then call the delete()方法。
编辑:在 Excel 2013 年没有 API 完成此操作。
我正在使用 office.js 开发办公室 add-in,我已经使用它添加了 table,现在我想清除 table,我尝试使用 deleteAllDataValuesAsync
方法,这只会删除数据而不是 header。
https://github.com/OfficeDev/office-js-docs/blob/master/reference/shared/binding.tablebinding.deletealldatavaluesasync.md
我正在尝试找出如何通过绑定或一般方式删除 table 中的 header
对于 Excel 2016 年及以后的版本,您可以结合使用绑定和 Table API:
首先对table对象使用Binding.getTable() method to retrieve the table object for the table associated with your binding. Then call the delete()方法。
编辑:在 Excel 2013 年没有 API 完成此操作。