Skip to content

Commit 4e9620b

Browse files
authored
Merge pull request #2339 from OfficeDev/main
[Admin] Publish
2 parents e8afcf1 + 5c9679e commit 4e9620b

File tree

111 files changed

+1493
-355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1493
-355
lines changed

docs/docs-ref-autogen/excel/excel.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,11 +1141,16 @@ functions:
11411141
package: excel!
11421142
summary: >-
11431143
Creates and opens a new workbook. Optionally, the workbook can be
1144-
pre-populated with a Base64-encoded .xlsx file. Note: Macros can be a
1145-
security risk. If this API is used to create a workbook that includes a
1146-
macro, the add-in user will be prompted with a "Trust this add-in?" dialog
1147-
in the Excel UI. The user must select the "Trust add-in" button to
1148-
proceed.
1144+
pre-populated with a Base64-encoded .xlsx file. The `extensionHardening`
1145+
Windows registry key affects the `base64File` param. The file extension
1146+
defined by the param must match the real file type of the file. If
1147+
`extensionHardening` is set to deny mismatches and the file extension does
1148+
not match the real file type, this API throws the following error: "This
1149+
operation is not allowed due to the extension hardening policy." Note:
1150+
Macros can be a security risk. If this API is used to create a workbook
1151+
that includes a macro, the add-in user will be prompted with a "Trust this
1152+
add-in?" dialog in the Excel UI. The user must select the "Trust add-in"
1153+
button to proceed.
11491154
11501155
11511156
\[ [API set: ExcelApi

docs/docs-ref-autogen/excel/excel/excel.cardlayout.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ uid: excel!Excel.CardLayout:type
44
package: excel!
55
fullName: Excel.CardLayout
66
summary: Represents the layout of a card in card view.
7-
remarks: "\\[ [API set: ExcelApi 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.EntityCardLayout](/javascript/api/excel/excel.entitycardlayout), [Excel.EntityArrayCardLayout](/javascript/api/excel/excel.entityarraycardlayout)"
7+
remarks: >-
8+
\[ [API set: ExcelApi
9+
1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
10+
11+
12+
Learn more about the types in this type alias through the following links.
13+
14+
15+
[Excel.EntityCardLayout](/javascript/api/excel/excel.entitycardlayout),
16+
[Excel.EntityArrayCardLayout](/javascript/api/excel/excel.entityarraycardlayout)
817
918
isPreview: false
1019
isDeprecated: false

docs/docs-ref-autogen/excel/excel/excel.cardlayoutsection.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@ uid: excel!Excel.CardLayoutSection:type
44
package: excel!
55
fullName: Excel.CardLayoutSection
66
summary: Represents the layout of a section of a card in card view.
7-
remarks: "\\[ [API set: ExcelApi 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.CardLayoutListSection](/javascript/api/excel/excel.cardlayoutlistsection), [Excel.CardLayoutTableSection](/javascript/api/excel/excel.cardlayouttablesection), [Excel.CardLayoutTwoColumnSection](/javascript/api/excel/excel.cardlayouttwocolumnsection)"
7+
remarks: >-
8+
\[ [API set: ExcelApi
9+
1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
10+
11+
12+
Learn more about the types in this type alias through the following links.
13+
14+
15+
[Excel.CardLayoutListSection](/javascript/api/excel/excel.cardlayoutlistsection),
16+
[Excel.CardLayoutTableSection](/javascript/api/excel/excel.cardlayouttablesection),
17+
[Excel.CardLayoutTwoColumnSection](/javascript/api/excel/excel.cardlayouttwocolumnsection)
818
919
isPreview: false
1020
isDeprecated: false

docs/docs-ref-autogen/excel/excel/excel.cellcontrol.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,47 @@ uid: excel!Excel.CellControl:type
44
package: excel!
55
fullName: Excel.CellControl
66
summary: Represents an interactable control inside of a cell.
7-
remarks: "\\[ [API set: ExcelApi 1.18](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\n\n\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.UnknownCellControl](/javascript/api/excel/excel.unknowncellcontrol), [Excel.EmptyCellControl](/javascript/api/excel/excel.emptycellcontrol), [Excel.MixedCellControl](/javascript/api/excel/excel.mixedcellcontrol), [Excel.CheckboxCellControl](/javascript/api/excel/excel.checkboxcellcontrol)\r\n\r\n#### Examples\n\n```TypeScript\n// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/42-range/range-cell-control.yaml\n\n// Add checkboxes to the table.\nawait Excel.run(async (context) => {\n const sheet = context.workbook.worksheets.getActiveWorksheet();\n\n // Get the second column in the table, without the header.\n const range = sheet.tables.getItem(\"FruitTable\").columns.getItem(\"Analysis\").getDataBodyRange();\n\n // Change the boolean values to checkboxes.\n range.control = {\n type: Excel.CellControlType.checkbox\n };\n await context.sync();\n});\n```"
7+
remarks: >-
8+
\[ [API set: ExcelApi
9+
1.18](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
10+
11+
12+
13+
14+
Learn more about the types in this type alias through the following links.
15+
16+
17+
[Excel.UnknownCellControl](/javascript/api/excel/excel.unknowncellcontrol),
18+
[Excel.EmptyCellControl](/javascript/api/excel/excel.emptycellcontrol),
19+
[Excel.MixedCellControl](/javascript/api/excel/excel.mixedcellcontrol),
20+
[Excel.CheckboxCellControl](/javascript/api/excel/excel.checkboxcellcontrol)
21+
22+
23+
#### Examples
24+
25+
26+
```TypeScript
27+
28+
// Link to full sample:
29+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/42-range/range-cell-control.yaml
30+
31+
32+
// Add checkboxes to the table.
33+
34+
await Excel.run(async (context) => {
35+
const sheet = context.workbook.worksheets.getActiveWorksheet();
36+
37+
// Get the second column in the table, without the header.
38+
const range = sheet.tables.getItem("FruitTable").columns.getItem("Analysis").getDataBodyRange();
39+
40+
// Change the boolean values to checkboxes.
41+
range.control = {
42+
type: Excel.CellControlType.checkbox
43+
};
44+
await context.sync();
45+
});
46+
47+
```
848
949
isPreview: false
1050
isDeprecated: false

docs/docs-ref-autogen/excel/excel/excel.cellvalue.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,30 @@ uid: excel!Excel.CellValue:type
44
package: excel!
55
fullName: Excel.CellValue
66
summary: Represents the value in a cell.
7-
remarks: "\\[ [API set: ExcelApi 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.ArrayCellValue](/javascript/api/excel/excel.arraycellvalue), [Excel.BooleanCellValue](/javascript/api/excel/excel.booleancellvalue), [Excel.DoubleCellValue](/javascript/api/excel/excel.doublecellvalue), [Excel.EntityCellValue](/javascript/api/excel/excel.entitycellvalue), [Excel.EmptyCellValue](/javascript/api/excel/excel.emptycellvalue), [Excel.ErrorCellValue](/javascript/api/excel/excel.errorcellvalue), [Excel.ExternalCodeServiceObjectCellValue](/javascript/api/excel/excel.externalcodeserviceobjectcellvalue), [Excel.FormattedNumberCellValue](/javascript/api/excel/excel.formattednumbercellvalue), [Excel.FunctionCellValue](/javascript/api/excel/excel.functioncellvalue), [Excel.LinkedEntityCellValue](/javascript/api/excel/excel.linkedentitycellvalue), [Excel.LocalImageCellValue](/javascript/api/excel/excel.localimagecellvalue), [Excel.ReferenceCellValue](/javascript/api/excel/excel.referencecellvalue), [Excel.StringCellValue](/javascript/api/excel/excel.stringcellvalue), [Excel.ValueTypeNotAvailableCellValue](/javascript/api/excel/excel.valuetypenotavailablecellvalue), [Excel.WebImageCellValue](/javascript/api/excel/excel.webimagecellvalue), [Excel.CellValueExtraProperties](/javascript/api/excel/excel.cellvalueextraproperties)"
7+
remarks: >-
8+
\[ [API set: ExcelApi
9+
1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
10+
11+
12+
Learn more about the types in this type alias through the following links.
13+
14+
15+
[Excel.ArrayCellValue](/javascript/api/excel/excel.arraycellvalue),
16+
[Excel.BooleanCellValue](/javascript/api/excel/excel.booleancellvalue),
17+
[Excel.DoubleCellValue](/javascript/api/excel/excel.doublecellvalue),
18+
[Excel.EntityCellValue](/javascript/api/excel/excel.entitycellvalue),
19+
[Excel.EmptyCellValue](/javascript/api/excel/excel.emptycellvalue),
20+
[Excel.ErrorCellValue](/javascript/api/excel/excel.errorcellvalue),
21+
[Excel.ExternalCodeServiceObjectCellValue](/javascript/api/excel/excel.externalcodeserviceobjectcellvalue),
22+
[Excel.FormattedNumberCellValue](/javascript/api/excel/excel.formattednumbercellvalue),
23+
[Excel.FunctionCellValue](/javascript/api/excel/excel.functioncellvalue),
24+
[Excel.LinkedEntityCellValue](/javascript/api/excel/excel.linkedentitycellvalue),
25+
[Excel.LocalImageCellValue](/javascript/api/excel/excel.localimagecellvalue),
26+
[Excel.ReferenceCellValue](/javascript/api/excel/excel.referencecellvalue),
27+
[Excel.StringCellValue](/javascript/api/excel/excel.stringcellvalue),
28+
[Excel.ValueTypeNotAvailableCellValue](/javascript/api/excel/excel.valuetypenotavailablecellvalue),
29+
[Excel.WebImageCellValue](/javascript/api/excel/excel.webimagecellvalue),
30+
[Excel.CellValueExtraProperties](/javascript/api/excel/excel.cellvalueextraproperties)
831
932
isPreview: false
1033
isDeprecated: false

docs/docs-ref-autogen/excel/excel/excel.cellvalueandpropertymetadata.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@ fullName: Excel.CellValueAndPropertyMetadata
66
summary: >-
77
Represents the value and metadata of a property. The metadata applies to the
88
property (and not the value), but it is combined with the value in this type.
9-
remarks: "\\[ [API set: ExcelApi 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.CellValue](/javascript/api/excel/excel.cellvalue), [Excel.EntityPropertyExtraProperties](/javascript/api/excel/excel.entitypropertyextraproperties)"
9+
remarks: >-
10+
\[ [API set: ExcelApi
11+
1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
12+
13+
14+
Learn more about the types in this type alias through the following links.
15+
16+
17+
[Excel.CellValue](/javascript/api/excel/excel.cellvalue),
18+
[Excel.EntityPropertyExtraProperties](/javascript/api/excel/excel.entitypropertyextraproperties)
1019
1120
isPreview: false
1221
isDeprecated: false

docs/docs-ref-autogen/excel/excel/excel.compactlayout.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ fullName: Excel.CompactLayout
66
summary: >-
77
Represents the layout used when there is limited space to represent the
88
entity.
9-
remarks: "\\[ [API set: ExcelApi 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.EntityCompactLayout](/javascript/api/excel/excel.entitycompactlayout)"
9+
remarks: >-
10+
\[ [API set: ExcelApi
11+
1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
12+
13+
14+
Learn more about the types in this type alias through the following links.
15+
16+
17+
[Excel.EntityCompactLayout](/javascript/api/excel/excel.entitycompactlayout)
1018
1119
isPreview: false
1220
isDeprecated: false

docs/docs-ref-autogen/excel/excel/excel.entitypropertytype.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ uid: excel!Excel.EntityPropertyType:type
44
package: excel!
55
fullName: Excel.EntityPropertyType
66
summary: Represents the value of a property.
7-
remarks: "\\[ [API set: ExcelApi 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.CellValueAndPropertyMetadata](/javascript/api/excel/excel.cellvalueandpropertymetadata), [Excel.CellValue](/javascript/api/excel/excel.cellvalue)"
7+
remarks: >-
8+
\[ [API set: ExcelApi
9+
1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
10+
11+
12+
Learn more about the types in this type alias through the following links.
13+
14+
15+
[Excel.CellValueAndPropertyMetadata](/javascript/api/excel/excel.cellvalueandpropertymetadata),
16+
[Excel.CellValue](/javascript/api/excel/excel.cellvalue)
817
918
isPreview: false
1019
isDeprecated: false

docs/docs-ref-autogen/excel/excel/excel.errorcellvalue.yml

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,64 @@ uid: excel!Excel.ErrorCellValue:type
44
package: excel!
55
fullName: Excel.ErrorCellValue
66
summary: Represents a cell value which contains an error.
7-
remarks: "\\[ [API set: ExcelApi 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\n\n\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.BlockedErrorCellValue](/javascript/api/excel/excel.blockederrorcellvalue), [Excel.BusyErrorCellValue](/javascript/api/excel/excel.busyerrorcellvalue), [Excel.CalcErrorCellValue](/javascript/api/excel/excel.calcerrorcellvalue), [Excel.ConnectErrorCellValue](/javascript/api/excel/excel.connecterrorcellvalue), [Excel.Div0ErrorCellValue](/javascript/api/excel/excel.div0errorcellvalue), [Excel.ExternalErrorCellValue](/javascript/api/excel/excel.externalerrorcellvalue), [Excel.FieldErrorCellValue](/javascript/api/excel/excel.fielderrorcellvalue), [Excel.GettingDataErrorCellValue](/javascript/api/excel/excel.gettingdataerrorcellvalue), [Excel.NotAvailableErrorCellValue](/javascript/api/excel/excel.notavailableerrorcellvalue), [Excel.NameErrorCellValue](/javascript/api/excel/excel.nameerrorcellvalue), [Excel.NullErrorCellValue](/javascript/api/excel/excel.nullerrorcellvalue), [Excel.NumErrorCellValue](/javascript/api/excel/excel.numerrorcellvalue), [Excel.PlaceholderErrorCellValue](/javascript/api/excel/excel.placeholdererrorcellvalue), [Excel.PythonErrorCellValue](/javascript/api/excel/excel.pythonerrorcellvalue), [Excel.RefErrorCellValue](/javascript/api/excel/excel.referrorcellvalue), [Excel.SpillErrorCellValue](/javascript/api/excel/excel.spillerrorcellvalue), [Excel.TimeoutErrorCellValue](/javascript/api/excel/excel.timeouterrorcellvalue), [Excel.ValueErrorCellValue](/javascript/api/excel/excel.valueerrorcellvalue)\r\n\r\n#### Examples\n\n```TypeScript\n// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/20-data-types/data-types-error-values.yaml\n\n// This function sets the value of cell A1 to a #BUSY! error using data types.\nawait Excel.run(async (context) => {\n // Retrieve the Sample worksheet and cell A1 on that sheet.\n const sheet = context.workbook.worksheets.getItemOrNullObject(\"Sample\");\n const range = sheet.getRange(\"A1\");\n\n // Get the error data type and set its type to `busy`.\n const error: Excel.ErrorCellValue = {\n type: Excel.CellValueType.error,\n errorType: Excel.ErrorCellValueType.busy\n };\n\n // Set cell A1 as the busy error.\n range.valuesAsJson = [[error]];\n await context.sync();\n});\n```"
7+
remarks: >-
8+
\[ [API set: ExcelApi
9+
1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
10+
11+
12+
13+
14+
Learn more about the types in this type alias through the following links.
15+
16+
17+
[Excel.BlockedErrorCellValue](/javascript/api/excel/excel.blockederrorcellvalue),
18+
[Excel.BusyErrorCellValue](/javascript/api/excel/excel.busyerrorcellvalue),
19+
[Excel.CalcErrorCellValue](/javascript/api/excel/excel.calcerrorcellvalue),
20+
[Excel.ConnectErrorCellValue](/javascript/api/excel/excel.connecterrorcellvalue),
21+
[Excel.Div0ErrorCellValue](/javascript/api/excel/excel.div0errorcellvalue),
22+
[Excel.ExternalErrorCellValue](/javascript/api/excel/excel.externalerrorcellvalue),
23+
[Excel.FieldErrorCellValue](/javascript/api/excel/excel.fielderrorcellvalue),
24+
[Excel.GettingDataErrorCellValue](/javascript/api/excel/excel.gettingdataerrorcellvalue),
25+
[Excel.NotAvailableErrorCellValue](/javascript/api/excel/excel.notavailableerrorcellvalue),
26+
[Excel.NameErrorCellValue](/javascript/api/excel/excel.nameerrorcellvalue),
27+
[Excel.NullErrorCellValue](/javascript/api/excel/excel.nullerrorcellvalue),
28+
[Excel.NumErrorCellValue](/javascript/api/excel/excel.numerrorcellvalue),
29+
[Excel.PlaceholderErrorCellValue](/javascript/api/excel/excel.placeholdererrorcellvalue),
30+
[Excel.PythonErrorCellValue](/javascript/api/excel/excel.pythonerrorcellvalue),
31+
[Excel.RefErrorCellValue](/javascript/api/excel/excel.referrorcellvalue),
32+
[Excel.SpillErrorCellValue](/javascript/api/excel/excel.spillerrorcellvalue),
33+
[Excel.TimeoutErrorCellValue](/javascript/api/excel/excel.timeouterrorcellvalue),
34+
[Excel.ValueErrorCellValue](/javascript/api/excel/excel.valueerrorcellvalue)
35+
36+
37+
#### Examples
38+
39+
40+
```TypeScript
41+
42+
// Link to full sample:
43+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/20-data-types/data-types-error-values.yaml
44+
45+
46+
// This function sets the value of cell A1 to a #BUSY! error using data types.
47+
48+
await Excel.run(async (context) => {
49+
// Retrieve the Sample worksheet and cell A1 on that sheet.
50+
const sheet = context.workbook.worksheets.getItemOrNullObject("Sample");
51+
const range = sheet.getRange("A1");
52+
53+
// Get the error data type and set its type to `busy`.
54+
const error: Excel.ErrorCellValue = {
55+
type: Excel.CellValueType.error,
56+
errorType: Excel.ErrorCellValueType.busy
57+
};
58+
59+
// Set cell A1 as the busy error.
60+
range.valuesAsJson = [[error]];
61+
await context.sync();
62+
});
63+
64+
```
865
966
isPreview: false
1067
isDeprecated: false

docs/docs-ref-autogen/excel/excel/excel.functioncellvalue.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ uid: excel!Excel.FunctionCellValue:type
44
package: excel!
55
fullName: Excel.FunctionCellValue
66
summary: Represents a cell value which can be evaluated as a function.
7-
remarks: "\\[ [API set: ExcelApi 1.19](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \\]\r\n\r\nLearn more about the types in this type alias through the following links. \r\n\r\n[Excel.JavaScriptCustomFunctionReferenceCellValue](/javascript/api/excel/excel.javascriptcustomfunctionreferencecellvalue)"
7+
remarks: >-
8+
\[ [API set: ExcelApi
9+
1.19](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
10+
11+
12+
Learn more about the types in this type alias through the following links.
13+
14+
15+
[Excel.JavaScriptCustomFunctionReferenceCellValue](/javascript/api/excel/excel.javascriptcustomfunctionreferencecellvalue)
816
917
isPreview: false
1018
isDeprecated: false

0 commit comments

Comments
 (0)