Skip to content

Commit 4b52c0b

Browse files
Apply suggestions from code review
Co-authored-by: Alison McKay <[email protected]>
1 parent 7c9dcf9 commit 4b52c0b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ Excel is often used for reporting scenarios where you want to share worksheet da
1111

1212
## Page layout and print settings
1313

14-
Add-ins have access to page layout settings at a worksheet level. These control how the sheet is printed. A `Worksheet` object has three layout-related properties: `horizontalPageBreaks`, `verticalPageBreaks`, `pageLayout`.
14+
Add-ins have access to page layout settings at a worksheet level. These control how the sheet is printed. A `Worksheet` object has three layout-related properties: `horizontalPageBreaks`, `verticalPageBreaks`, and `pageLayout`.
1515

16-
`Worksheet.horizontalPageBreaks` and `Worksheet.verticalPageBreaks` are [PageBreakCollections](/javascript/api/excel/excel.pagebreakcollection). These are collections of [PageBreaks](/javascript/api/excel/excel.pagebreak), which specify ranges where manual page breaks are inserted. The following code sample adds a horizontal page break above row **21**.
16+
`Worksheet.horizontalPageBreaks` and `Worksheet.verticalPageBreaks` are [PageBreakCollection](/javascript/api/excel/excel.pagebreakcollection) objects. These are collections of [PageBreak](/javascript/api/excel/excel.pagebreak) objects, which specify ranges where manual page breaks are inserted. The following code sample adds a horizontal page break before row **21**.
1717

1818
```js
1919
await Excel.run(async (context) => {
2020
const sheet = context.workbook.worksheets.getActiveWorksheet();
21-
sheet.horizontalPageBreaks.add("A21:E21"); // The page break is added above this range.
21+
sheet.horizontalPageBreaks.add("A21:E21"); // The page break precedes this range.
2222
await context.sync();
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 on any printer-specific implementation. These settings include margins, orientation, page numbering, title rows, and print area.
27-
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.
26+
`Worksheet.pageLayout` is a [PageLayout](/javascript/api/excel/excel.pagelayout) object. This object contains layout and print settings that aren't dependent on any printer-specific implementation. These settings include margins, orientation, page numbering, title rows, and print area.
27+
The following code sample centers the page (both vertically and horizontally), sets a title row to be printed at the top of every page, and sets the printed area to a subsection of the worksheet.
2828

2929
```js
3030
await Excel.run(async (context) => {
@@ -49,11 +49,11 @@ await Excel.run(async (context) => {
4949
> [!NOTE]
5050
> [!INCLUDE [Information about using preview APIs](../includes/using-excel-preview-apis.md)]
5151
52-
Data types can have an icon next to the value in the cell. When you have large tables with many data types, this can appear cluttered.
52+
Data types can display an icon next to the value in the cell. When you have large tables with many data types, the icons may add visual clutter.
5353

5454
:::image type="content" source="../images/data-types-icon-table.png" alt-text="An Excel table with three data types showing the same icon next to each data type.":::
5555

56-
Use the [Worksheet.showDataTypeIcons](/javascript/api/excel/excel.worksheet#excel-excel-worksheet-showdatatypeicons-member) property to toggle data type icons on or off. For more information about data types, see [Overview of data types in Excel add-ins](excel-data-types-overview.md). The `showDataTypeIcons` property performs the same action as the user toggling data icons by using the **View** > **Data Type Icons** checkbox. The visibility settings for data type icons are saved with the worksheet and are also seen by anyone co-authoring at the time they are changed.
56+
Use the [Worksheet.showDataTypeIcons](/javascript/api/excel/excel.worksheet#excel-excel-worksheet-showdatatypeicons-member) property to toggle data type icons on or off. For more information about data types and their icons, see [Overview of data types in Excel add-ins](excel-data-types-overview.md). The `showDataTypeIcons` property performs the same action as the user toggling data type icons by using the **View** > **Data Type Icons** checkbox. The visibility settings for data type icons are saved with the worksheet and are seen by anyone co-authoring at the time they are changed.
5757

5858
The following code sample shows how to turn off data type icons on a worksheet.
5959

@@ -77,7 +77,7 @@ Gridlines are the faint lines that appear between cells on a worksheet. These ca
7777

7878
:::image type="content" source="../images/excel-gridlines.png" alt-text="An infographic where the gridlines are distracting.":::
7979

80-
Turn the gridlines on or off with the [Worksheet.showGridlines](/javascript/api/excel/excel.worksheet#excel-excel-worksheet-showgridlines-member) property. This is the same as using the **View** > **Gridlines** checkbox. The visibility settings for gridlines are saved with the worksheet and are also seen by anyone co-authoring at the time they are changed.
80+
Turn the gridlines on or off with the [Worksheet.showGridlines](/javascript/api/excel/excel.worksheet#excel-excel-worksheet-showgridlines-member) property. This is the same as using the **View** > **Gridlines** checkbox in the Excel UI. The visibility settings for gridlines are saved with the worksheet and are seen by anyone co-authoring at the time they are changed.
8181

8282
The following example shows how to turn off gridlines on a worksheet.
8383

@@ -98,7 +98,7 @@ Headings are the Excel row numbers that appear on the left side of the worksheet
9898

9999
:::image type="content" source="../images/excel-heading-label.png" alt-text="A spreadsheet section highlighting the column heading A and the row heading 2.":::
100100

101-
Turn the headings on or off with the [Worksheet.showHeadings](/javascript/api/excel/excel.worksheet#excel-excel-worksheet-showheadings-member) property. This is the same as using the **View** > **Headings** checkbox. The following example shows how to turn headings off on a worksheet.
101+
Turn the headings on or off with the [Worksheet.showHeadings](/javascript/api/excel/excel.worksheet#excel-excel-worksheet-showheadings-member) property. This is the same as using the **View** > **Headings** checkbox in the Excel UI. The following example shows how to turn headings off on a worksheet.
102102

103103
```js
104104
await Excel.run(async (context) => {

0 commit comments

Comments
 (0)