Skip to content

Commit 7c9dcf9

Browse files
AlexJerabekCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent d4b099f commit 7c9dcf9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/excel/excel-add-ins-worksheet-display.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ await Excel.run(async (context) => {
2323
});
2424
```
2525

26-
`Worksheet.pageLayout` is a [PageLayout](/javascript/api/excel/excel.pagelayout) object. This object contains layout and print settings that are not dependent any printer-specific implementation. These settings include margins, orientation, page numbering, title rows, and print area.
27-
26+
`Worksheet.pageLayout` is a [PageLayout](/javascript/api/excel/excel.pagelayout) object. This object contains layout and print settings that are not dependent on any printer-specific implementation. These settings include margins, orientation, page numbering, title rows, and print area.
2827
The following code sample centers the page (both vertically and horizontally), sets a title row that will be printed at the top of every page, and sets the printed area to a subsection of the worksheet.
2928

3029
```js
@@ -60,9 +59,9 @@ The following code sample shows how to turn off data type icons on a worksheet.
6059

6160
```js
6261
await Excel.run(async (context) => {
63-
    const sheet = context.workbook.worksheets.getActiveWorksheet();
64-
    sheet.showDataTypeIcons = false;
65-
    await context.sync();
62+
const sheet = context.workbook.worksheets.getActiveWorksheet();
63+
sheet.showDataTypeIcons = false;
64+
await context.sync();
6665
});
6766
```
6867

0 commit comments

Comments
 (0)