@@ -78,41 +78,6 @@ properties:
7878 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets)
7979 \]
8080
81-
82- #### Examples
83-
84-
85- ```TypeScript
86-
87- // Link to full sample:
88- https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/20-data-types/data-types-formatted-number.yaml
89-
90-
91- // This function creates a formatted number data type,
92-
93- // and sets the format of this data type as a currency.
94-
95- await Excel.run(async (context) => {
96- // Get the Sample worksheet and a range on that sheet.
97- const sheet = context.workbook.worksheets.getItemOrNullObject("Sample");
98- const currencyRange = sheet.getRange("A2");
99-
100- // Write a number formatted as currency to cell A2.
101- currencyRange.valuesAsJson = [
102- [
103- {
104- type: Excel.CellValueType.formattedNumber,
105- basicValue: 12.34,
106- numberFormat: "$* #,##0.00"
107- }
108- ]
109- ];
110-
111- await context.sync();
112- });
113-
114- ```
115-
11681 isPreview : false
11782 isDeprecated : true
11883 customDeprecatedMessage : ' Deprecated since \[Api set: ExcelApi 1.19\].'
@@ -130,40 +95,6 @@ properties:
13095 1.16](/javascript/api/requirement-sets/excel/excel-api-requirement-sets)
13196 \]
13297
133-
134- #### Examples
135-
136-
137- ```TypeScript
138-
139- // Link to full sample:
140- https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/20-data-types/data-types-formatted-number.yaml
141-
142-
143- // This function creates a formatted number data type,
144-
145- // and sets the format of this data type as a date.
146-
147- await Excel.run(async (context) => {
148- // Get the Sample worksheet and a range on that sheet.
149- const sheet = context.workbook.worksheets.getItemOrNullObject("Sample");
150- const dateRange = sheet.getRange("A1");
151-
152- // Write a number formatted as a date to cell A1.
153- dateRange.valuesAsJson = [
154- [
155- {
156- type: Excel.CellValueType.formattedNumber,
157- basicValue: 32889.0,
158- numberFormat: "m/d/yyyy"
159- }
160- ]
161- ];
162- await context.sync();
163- });
164-
165- ```
166-
16798 isPreview : false
16899 isDeprecated : true
169100 customDeprecatedMessage : ' Deprecated since \[Api set: ExcelApi 1.19\].'
0 commit comments