Skip to content

Commit a2f4c4f

Browse files
authored
Merge pull request #2172 from OfficeDev/main
[Admin] Publish
2 parents 7d58b82 + c92943b commit a2f4c4f

File tree

7 files changed

+23
-26
lines changed

7 files changed

+23
-26
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ properties:
146146
summary: |-
147147
Specifies whether to load on the `textRuns` property.
148148
149-
\[ [API set: RangeTextRun](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
149+
\[ [API set: ExcelApi BETA (PREVIEW ONLY)](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
150150
remarks: ''
151151
isPreview: false
152152
isDeprecated: false

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,20 @@ methods:
4040
uid: 'excel!Excel.NoteCollection#add:member(1)'
4141
package: excel!
4242
fullName: 'add(cellAddress, content)'
43-
summary: Adds a new note to the collection.
43+
summary: Adds a new note with the given content on the given cell.
4444
remarks: '\[ [API set: ExcelApi BETA (PREVIEW ONLY)](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
4545
isPreview: true
4646
isDeprecated: false
4747
syntax:
4848
content: 'add(cellAddress: Range | string, content: any): Excel.Note;'
4949
parameters:
5050
- id: cellAddress
51-
description: ''
51+
description: >-
52+
The cell to which the note is added. This can be a `Range` object or a string such as "A1". If the string is
53+
invalid, or the range is not a single cell, an `InvalidCellAddress` error is thrown.
5254
type: '<xref uid="excel!Excel.Range:class" /> | string'
5355
- id: content
54-
description: ''
56+
description: The text of the note.
5557
type: any
5658
return:
5759
type: '<xref uid="excel!Excel.Note:class" />'
@@ -81,7 +83,7 @@ methods:
8183
content: 'getItemAt(index: number): Excel.Note;'
8284
parameters:
8385
- id: index
84-
description: ''
86+
description: The index value of the note to be retrieved. Zero-indexed.
8587
type: number
8688
return:
8789
type: '<xref uid="excel!Excel.Note:class" />'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ properties:
149149
summary: |-
150150
Represents the `textRuns` property.
151151
152-
\[ [API set: RangeTextRun](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
152+
\[ [API set: ExcelApi BETA (PREVIEW ONLY)](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
153153
remarks: ''
154154
isPreview: false
155155
isDeprecated: false

docs/includes/excel-preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
||[height](/javascript/api/excel/excel.note#excel-excel-note-height-member)|Specifies the height of the note.|
115115
||[visible](/javascript/api/excel/excel.note#excel-excel-note-visible-member)|Specifies the visibility of the note.|
116116
||[width](/javascript/api/excel/excel.note#excel-excel-note-width-member)|Specifies the width of the note.|
117-
|[NoteCollection](/javascript/api/excel/excel.notecollection)|[add(cellAddress: Range \| string, content: any)](/javascript/api/excel/excel.notecollection#excel-excel-notecollection-add-member(1))|Adds a new note to the collection.|
117+
|[NoteCollection](/javascript/api/excel/excel.notecollection)|[add(cellAddress: Range \| string, content: any)](/javascript/api/excel/excel.notecollection#excel-excel-notecollection-add-member(1))|Adds a new note with the given content on the given cell.|
118118
||[getCount()](/javascript/api/excel/excel.notecollection#excel-excel-notecollection-getcount-member(1))|Gets the number of notes in the collection.|
119119
||[getItemAt(index: number)](/javascript/api/excel/excel.notecollection#excel-excel-notecollection-getitemat-member(1))|Gets a note object by its index in the collection.|
120120
||[items](/javascript/api/excel/excel.notecollection#excel-excel-notecollection-items-member)|Gets the loaded child items in this collection.|

docs/requirement-sets/excel/excel-preview-apis.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Excel JavaScript preview APIs
33
description: Details about upcoming Excel JavaScript APIs.
4-
ms.date: 10/10/2022
4+
ms.date: 01/03/2025
55
ms.topic: whats-new
66
ms.localizationpriority: medium
77
---
@@ -18,6 +18,7 @@ The following table provides a concise summary of the APIs, while the subsequent
1818
|:--- |:--- |:--- |
1919
| Document tasks | Turn comments into tasks assigned to users. | [DocumentTask](/javascript/api/excel/excel.documenttask), [DocumentTaskChange](/javascript/api/excel/excel.documenttaskchange), [DocumentTaskChangeCollection](/javascript/api/excel/excel.documenttaskchangecollection), [DocumentTaskCollection](/javascript/api/excel/excel.documenttaskcollection) |
2020
| Linked data types | Adds support for data types connected to Excel from external sources. | [LinkedDataType](/javascript/api/excel/excel.linkeddatatype), [LinkedDataTypeAddedEventArgs](/javascript/api/excel/excel.linkeddatatypeaddedeventargs), [LinkedDataTypeCollection](/javascript/api/excel/excel.linkeddatatypecollection) |
21+
| Notes | Create, delete, and manage notes in a worksheet. Also supports setting the height, width, and visibility of notes. | [Note](/javascript/api/excel/excel.note), [NoteCollecction](/javascript/api/excel/excel.notecollection) |
2122
| Table styles | Provides control for font, border, fill color, and other aspects of table styles. | [Table](/javascript/api/excel/excel.table), [PivotTable](/javascript/api/excel/excel.pivottable), [Slicer](/javascript/api/excel/excel.slicer) |
2223

2324
## API list

generate-docs/api-extractor-inputs-excel/excel.d.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8132,7 +8132,7 @@ export declare namespace Excel {
81328132
/**
81338133
* Specifies whether to load on the `textRuns` property.
81348134
*
8135-
* [Api set: RangeTextRun]
8135+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
81368136
*/
81378137
textRuns?: boolean;
81388138
}
@@ -8335,7 +8335,7 @@ export declare namespace Excel {
83358335
/**
83368336
* Represents the `textRuns` property.
83378337
*
8338-
* [Api set: RangeTextRun]
8338+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
83398339
*/
83408340
textRuns?: RangeTextRun[];
83418341
}
@@ -41892,15 +41892,14 @@ export declare namespace Excel {
4189241892
/** Gets the loaded child items in this collection. */
4189341893
readonly items: Excel.Note[];
4189441894
/**
41895-
* Adds a new note to the collection.
41895+
* Adds a new note with the given content on the given cell.
4189641896
*
4189741897
* @remarks
4189841898
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
4189941899
* @beta
4190041900
*
41901-
* @param cellAddress
41902-
- * @param content
41903-
- * @returns
41901+
* @param cellAddress - The cell to which the note is added. This can be a `Range` object or a string such as "A1". If the string is invalid, or the range is not a single cell, an `InvalidCellAddress` error is thrown.
41902+
* @param content - The text of the note.
4190441903
*/
4190541904
add(cellAddress: Range | string, content: any): Excel.Note;
4190641905
/**
@@ -41909,7 +41908,6 @@ export declare namespace Excel {
4190941908
* @remarks
4191041909
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
4191141910
* @beta
41912-
* @returns
4191341911
*/
4191441912
getCount(): OfficeExtension.ClientResult<number>;
4191541913
/**
@@ -41919,8 +41917,7 @@ export declare namespace Excel {
4191941917
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
4192041918
* @beta
4192141919
*
41922-
* @param index
41923-
- * @returns
41920+
* @param index - The index value of the note to be retrieved. Zero-indexed.
4192441921
*/
4192541922
getItemAt(index: number): Excel.Note;
4192641923
/**

generate-docs/script-inputs/office_preview.d.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32391,7 +32391,7 @@ declare namespace Excel {
3239132391
/**
3239232392
* Specifies whether to load on the `textRuns` property.
3239332393
*
32394-
* [Api set: RangeTextRun]
32394+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
3239532395
*/
3239632396
textRuns?: boolean;
3239732397
}
@@ -32594,7 +32594,7 @@ declare namespace Excel {
3259432594
/**
3259532595
* Represents the `textRuns` property.
3259632596
*
32597-
* [Api set: RangeTextRun]
32597+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
3259832598
*/
3259932599
textRuns?: RangeTextRun[];
3260032600
}
@@ -66129,15 +66129,14 @@ declare namespace Excel {
6612966129
/** Gets the loaded child items in this collection. */
6613066130
readonly items: Excel.Note[];
6613166131
/**
66132-
* Adds a new note to the collection.
66132+
* Adds a new note with the given content on the given cell.
6613366133
*
6613466134
* @remarks
6613566135
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
6613666136
* @beta
6613766137
*
66138-
* @param cellAddress
66139-
* @param content
66140-
* @returns
66138+
* @param cellAddress The cell to which the note is added. This can be a `Range` object or a string such as "A1". If the string is invalid, or the range is not a single cell, an `InvalidCellAddress` error is thrown.
66139+
* @param content The text of the note.
6614166140
*/
6614266141
add(cellAddress: Range | string, content: any): Excel.Note;
6614366142
/**
@@ -66146,7 +66145,6 @@ declare namespace Excel {
6614666145
* @remarks
6614766146
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
6614866147
* @beta
66149-
* @returns
6615066148
*/
6615166149
getCount(): OfficeExtension.ClientResult<number>;
6615266150
/**
@@ -66156,8 +66154,7 @@ declare namespace Excel {
6615666154
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
6615766155
* @beta
6615866156
*
66159-
* @param index
66160-
* @returns
66157+
* @param index The index value of the note to be retrieved. Zero-indexed.
6616166158
*/
6616266159
getItemAt(index: number): Excel.Note;
6616366160
/**

0 commit comments

Comments
 (0)