欠伸展肢体,吟咏心自愉。这篇文章主要讲述Excel.Application class相关的知识,希望能为你提供帮助。
https://docs.microsoft.com/en-us/javascript/api/excel/excel.application?view=office-js
Represents the Excel application that manages the workbook.
[
API set: ExcelApi 1.1
]
- Extends
- OfficeExtension.ClientObject
calculationMode | Returns the calculation mode used in the workbook, as defined by the constants in Excel.CalculationMode. Possible values are:
Automatic , where Excel controls recalculation;
AutomaticExceptTables , where Excel controls recalculation but ignores changes in tables;
Manual , where calculation is done when the user requests it.[ API set: ExcelApi 1.1 for get, 1.8 for set ] |
calculate(calculationType) | Recalculate all currently opened workbooks in Excel. [ API set: ExcelApi 1.1 ] |
load(option) | 【Excel.Application class】Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. |
suspendApiCalculationUntilNextSync() | Suspends calculation until the next "context.sync()" is called. Once set, it is the developer‘s responsibility to re-calc the workbook, to ensure that any dependencies are propagated. [ API set: ExcelApi 1.6 ] |
Property Details calculationMode
Returns the calculation mode used in the workbook, as defined by the constants in Excel.CalculationMode. Possible values are:
Automatic
, where Excel controls recalculation;
AutomaticExceptTables
, where Excel controls recalculation but ignores changes in tables;
Manual
, where calculation is done when the user requests it.[ API set: ExcelApi 1.1 for get, 1.8 for set ]
TypeScript
Property Value Excel.CalculationMode | "Automatic" | "AutomaticExceptTables" | "Manual"Method Details calculate(calculationType)
Recalculate all currently opened workbooks in Excel.
[ API set: ExcelApi 1.1 ]
TypeScript
Parameters
- calculationType
- Excel.CalculationType
Returns void Examples javascript
load(option)
Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties.
TypeScript
Parameters
- option
- string | string[]
Returns Excel.Application RemarksIn addition to this signature, this method has the following signatures:
load(option?: { select?: string;
expand?: string;
}): Excel.Application
- Where option.select is a comma-delimited string that specifies the properties/relationships to load, and options.expand is a comma-delimited string that specifies the relationships to load.load(option?: { select?: string;
expand?: string;
top?: number;
skip?: number }): Excel.Application
- Only available on collection types. It is similar to the preceding signature. Option.top specifies the maximum number of collection items that can be included in the result. Option.skip specifies the number of items that are to be skipped and not included in the result. If option.top is specified, the result set will start after skipping the specified number of items.Examples javaScript
suspendApiCalculationUntilNextSync()
Suspends calculation until the next "context.sync()" is called. Once set, it is the developer‘s responsibility to re-calc the workbook, to ensure that any dependencies are propagated.
[ API set: ExcelApi 1.6 ]
TypeScript
Returns voidtoJSON()
TypeScript
Returns Excel.Interfaces.ApplicationData
推荐阅读
- 读spring源码-ClassPathXmlApplicationContext-getBean
- android摄像头(camera)之 v4l2的c测试代码
- Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported for @RequestBod
- Android手机多媒体——通知
- java基础增强(统计网上app下载情况,并排序)
- AppCan - 推送问题一般日志排查步骤
- android ListView 用法
- GT-----如何做Android应用流量测试()
- SQL Server IS NULL条件(运算符)