Skip to content

Commit 5314de4

Browse files
authored
Merge pull request #356 from OfficeDev/main
[admin] Publish
2 parents 272f7c4 + b073cbc commit 5314de4

20 files changed

+474
-258
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ methods:
7878
uid: 'ExcelScript!ExcelScript.ChartPoint#getMarkerSize:member(1)'
7979
package: ExcelScript!
8080
fullName: getMarkerSize()
81-
summary: Represents marker size of a data point.
81+
summary: >-
82+
Represents marker size of a data point. The supported size range is 2 to 72. This method returns an
83+
InvalidArgument error if it's set with a size outside of the supported range.
8284
remarks: ''
8385
isPreview: false
8486
isDeprecated: false
@@ -168,7 +170,9 @@ methods:
168170
uid: 'ExcelScript!ExcelScript.ChartPoint#setMarkerSize:member(1)'
169171
package: ExcelScript!
170172
fullName: setMarkerSize(markerSize)
171-
summary: Represents marker size of a data point.
173+
summary: >-
174+
Represents marker size of a data point. The supported size range is 2 to 72. This method returns an
175+
InvalidArgument error if it's set with a size outside of the supported range.
172176
remarks: ''
173177
isPreview: false
174178
isDeprecated: false

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,9 @@ methods:
525525
uid: 'ExcelScript!ExcelScript.ChartSeries#getMarkerSize:member(1)'
526526
package: ExcelScript!
527527
fullName: getMarkerSize()
528-
summary: Specifies the marker size of a chart series.
528+
summary: >-
529+
Specifies the marker size of a chart series. The supported size range is 2 to 72. This method returns an
530+
InvalidArgument error if it's set with a size outside of the supported range.
529531
remarks: ''
530532
isPreview: false
531533
isDeprecated: false
@@ -1236,7 +1238,9 @@ methods:
12361238
uid: 'ExcelScript!ExcelScript.ChartSeries#setMarkerSize:member(1)'
12371239
package: ExcelScript!
12381240
fullName: setMarkerSize(markerSize)
1239-
summary: Specifies the marker size of a chart series.
1241+
summary: >-
1242+
Specifies the marker size of a chart series. The supported size range is 2 to 72. This method returns an
1243+
InvalidArgument error if it's set with a size outside of the supported range.
12401244
remarks: ''
12411245
isPreview: false
12421246
isDeprecated: false

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

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,32 @@ uid: 'ExcelScript!ExcelScript.ConditionalFormatRule:interface'
44
package: ExcelScript!
55
fullName: ExcelScript.ConditionalFormatRule
66
summary: 'Represents a rule, for all traditional rule/format pairings.'
7-
remarks: ''
7+
remarks: |-
8+
9+
10+
#### Examples
11+
12+
```TypeScript
13+
/**
14+
* This script applies a custom conditional formatting to the selected range.
15+
* A light-green fill is applied to a cell if the value is larger than the value in the row's previous column.
16+
*/
17+
function main(workbook: ExcelScript.Workbook) {
18+
// Get the selected cells.
19+
let selectedRange = workbook.getSelectedRange();
20+
21+
// Apply a rule for positive change from the previous column.
22+
let positiveChange: ExcelScript.ConditionalFormat = selectedRange.addConditionalFormat(ExcelScript.ConditionalFormatType.custom);
23+
24+
// Set the conditional format to be a lightgreen fill.
25+
let positiveCustom: ExcelScript.CustomConditionalFormat = positiveChange.getCustom();
26+
positiveCustom.getFormat().getFill().setColor("lightgreen");
27+
28+
// Set the conditional rule to be if there is positive change across the row.
29+
let positiveRule: ExcelScript.ConditionalFormatRule = positiveCustom.getRule();
30+
positiveRule.setFormula(`=${selectedRange.getCell(0, 0).getAddress()}>${selectedRange.getOffsetRange(0, -1).getCell(0, 0).getAddress()}`);
31+
}
32+
```
833
isPreview: false
934
isDeprecated: false
1035
type: interface

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,22 @@ remarks: |-
1919
let selectedRange = workbook.getSelectedRange();
2020
2121
// Apply a rule for positive change from the previous column.
22-
let positiveChange = selectedRange.addConditionalFormat(ExcelScript.ConditionalFormatType.custom);
23-
positiveChange.getCustom().getFormat().getFill().setColor("lightgreen");
24-
positiveChange.getCustom().getRule().setFormula(`=${selectedRange.getCell(0, 0).getAddress()}>${selectedRange.getOffsetRange(0, -1).getCell(0, 0).getAddress()}`);
22+
let positiveChange: ExcelScript.ConditionalFormat = selectedRange.addConditionalFormat(ExcelScript.ConditionalFormatType.custom);
23+
let positiveCustom: ExcelScript.CustomConditionalFormat = positiveChange.getCustom();
24+
positiveCustom.getFormat().getFill().setColor("lightgreen");
25+
positiveCustom.getRule().setFormula(`=${selectedRange.getCell(0, 0).getAddress()}>${selectedRange.getOffsetRange(0, -1).getCell(0, 0).getAddress()}`);
2526
2627
// Apply a rule for negative change from the previous column.
27-
let negativeChange = selectedRange.addConditionalFormat(ExcelScript.ConditionalFormatType.custom);
28-
negativeChange.getCustom().getFormat().getFill().setColor("pink");
29-
negativeChange.getCustom().getRule().setFormula(`=${selectedRange.getCell(0, 0).getAddress()}<${selectedRange.getOffsetRange(0, -1).getCell(0, 0).getAddress()}`);
28+
let negativeChange: ExcelScript.ConditionalFormat = selectedRange.addConditionalFormat(ExcelScript.ConditionalFormatType.custom);
29+
let negativeCustom: ExcelScript.CustomConditionalFormat = negativeChange.getCustom();
30+
negativeCustom.getFormat().getFill().setColor("pink");
31+
negativeCustom.getRule().setFormula(`=${selectedRange.getCell(0, 0).getAddress()}<${selectedRange.getOffsetRange(0, -1).getCell(0, 0).getAddress()}`);
3032
3133
// Apply a rule for no change from the previous column.
32-
let noChange = selectedRange.addConditionalFormat(ExcelScript.ConditionalFormatType.custom);
33-
noChange.getCustom().getFormat().getFill().setColor("lightyellow");
34-
noChange.getCustom().getRule().setFormula(`=${selectedRange.getCell(0, 0).getAddress()}=${selectedRange.getOffsetRange(0, -1).getCell(0, 0).getAddress()}`);
34+
let sameChange: ExcelScript.ConditionalFormat = selectedRange.addConditionalFormat(ExcelScript.ConditionalFormatType.custom);
35+
let sameCustom: ExcelScript.CustomConditionalFormat = sameChange.getCustom();
36+
sameCustom.getFormat().getFill().setColor("lightyellow");
37+
sameCustom.getRule().setFormula(`=${selectedRange.getCell(0, 0).getAddress()}=${selectedRange.getOffsetRange(0, -1).getCell(0, 0).getAddress()}`);
3538
}
3639
```
3740
isPreview: false

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ methods:
5454
fullName: getInvalidCells()
5555
summary: >-
5656
Returns a `RangeAreas` object, comprising one or more rectangular ranges, with invalid cell values. If all cell
57-
values are valid, this method returns `null`<!-- -->.
57+
values are valid, this function will return `null`<!-- -->.
5858
remarks: ''
5959
isPreview: false
6060
isDeprecated: false

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ properties:
8282
uid: 'ExcelScript!ExcelScript.PivotLabelFilter#substring:member'
8383
package: ExcelScript!
8484
fullName: substring
85-
summary: 'The substring used for `beginsWith`<!-- -->, `endsWith`<!-- -->, and `contains` filter conditions.'
85+
summary: 'The substring used for the `beginsWith`<!-- -->, `endsWith`<!-- -->, and `contains` filter conditions.'
8686
remarks: ''
8787
isPreview: false
8888
isDeprecated: false

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ methods:
12901290
summary: >-
12911291
Returns a `RangeAreas` object that represents the merged areas in this range. Note that if the merged areas count
12921292
in this range is more than 512, then this method will fail to return the result. If the `RangeAreas` object
1293-
doesn't exist, then this method returns `undefined`<!-- -->.
1293+
doesn't exist, then this function returns `undefined`<!-- -->.
12941294
remarks: ''
12951295
isPreview: false
12961296
isDeprecated: false

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: ExcelScript.SortMethod
33
uid: 'ExcelScript!ExcelScript.SortMethod:enum'
44
package: ExcelScript!
55
fullName: ExcelScript.SortMethod
6-
summary: ''
6+
summary: Represents the ordering method to be used when sorting Chinese characters.
77
remarks: |-
88
99

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ methods:
16141614
uid: 'ExcelScript!ExcelScript.Workbook#refreshAllDataConnections:member(1)'
16151615
package: ExcelScript!
16161616
fullName: refreshAllDataConnections()
1617-
summary: Makes a request to refresh all the data connections.
1617+
summary: Refreshes all the Data Connections.
16181618
remarks: ''
16191619
isPreview: false
16201620
isDeprecated: false

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ methods:
4545
uid: 'ExcelScript!ExcelScript.WorkbookProtection#protect:member(1)'
4646
package: ExcelScript!
4747
fullName: protect(password)
48-
summary: Protects a workbook. Fails if the workbook has been protected.
48+
summary: Protects the workbook. Fails if the workbook has been protected.
4949
remarks: ''
5050
isPreview: false
5151
isDeprecated: false
@@ -80,7 +80,7 @@ methods:
8080
uid: 'ExcelScript!ExcelScript.WorkbookProtection#unprotect:member(1)'
8181
package: ExcelScript!
8282
fullName: unprotect(password)
83-
summary: Unprotects a workbook.
83+
summary: Unprotects the workbook.
8484
remarks: ''
8585
isPreview: false
8686
isDeprecated: false

0 commit comments

Comments
 (0)