Excel.Application class

Source: Internet
Author: User
Tags tojson

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
Properties
Calculationmode

Returns The calculation mode used in the workbook, as defined by the constants in Excel.calculationmode. Possible values is: Automatic , where Excel controls recalculation; AutomaticExceptTables , where Excel controls recalculation but ignores Chan GES in tables; Manual, where calculation is do when the user requests it.

[API Set:excelapi 1.1 for GET, 1.8 for set]

Methods
Calculate (CalculationType)

Recalculate all currently opened workbooks in Excel.

[API SET:EXCELAPI 1.1]

Load (option)

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 be propagated.

[API SET:EXCELAPI 1.6]

ToJSON ()

Property Detailscalculationmode

Returns The calculation mode used in the workbook, as defined by the constants in Excel.calculationmode. Possible values is: Automatic , where Excel controls recalculation; AutomaticExceptTables , where Excel controls recalculation but ignores Chan GES in tables; Manual, where calculation is do when the user requests it.

[API Set:excelapi 1.1 for GET, 1.8 for set]

TypeScriptCopy
Property ValueExcel.calculationmode | "Automatic" | "Automaticexcepttables" | "Manual"Method detailscalculate (CalculationType)

Recalculate all currently opened workbooks in Excel.

[API SET:EXCELAPI 1.1]

TypeScriptCopy
Parameters
CalculationType
Excel.calculationtype

Specifies the calculation type to use. See Excel.calculationtype for details.

ReturnsvoidExamplesJavaScriptCopy
Load (option)

Queues up a command to load the specified properties of the object. You must call "Context.sync ()" Before reading the properties.

TypeScriptCopy
Parameters
Option
string | string[]

A comma-delimited string or an array of strings this specify the properties/relationships to load.

Returnsexcel.applicationremarks

In 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, specifies the relationships to load.

load(option?: { select?: string; expand?: string; top?: number; skip?: number }): Excel.Application-Only available on collection types. It's similar to the preceding signature. OPTION.TOP Specifies the maximum number of collection items that can is included in the result. OPTION.SKIP Specifies the number of items that is to is skipped and not included in the result. If Option.top is specified, the result set would start after skipping the specified number of items.

ExamplesJavaScriptCopy
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 be propagated.

[API SET:EXCELAPI 1.6]

TypeScriptCopy
ReturnsvoidToJSON ()TypeScriptCopy
ReturnsExcel.Interfaces.ApplicationData

Excel.Application class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.