Skip to content

Commit c69d518

Browse files
committed
clean up docs\spreadsheet\working-with-tables.md
1 parent 397732d commit c69d518

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

docs/spreadsheet/working-with-tables.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.suite: office
1111
ms.author: o365devx
1212
author: o365devx
1313
ms.topic: conceptual
14-
ms.date: 11/01/2017
14+
ms.date: 01/14/2025
1515
ms.localizationpriority: high
1616
---
1717

@@ -20,12 +20,11 @@ ms.localizationpriority: high
2020
This topic discusses the Open XML SDK <xref:DocumentFormat.OpenXml.Spreadsheet.Table> class and how it relates to the Open
2121
XML File Format SpreadsheetML schema. For more information about the
2222
overall structure of the parts and elements that make up a SpreadsheetML
23-
document, see [Structure of a SpreadsheetML document
24-
(Open XML SDK)](structure-of-a-spreadsheetml-document.md).
23+
document, see [Structure of a SpreadsheetML document (Open XML SDK)](structure-of-a-spreadsheetml-document.md).
2524

2625
## Tables in SpreadsheetML
2726

28-
The following information from the [!include[ISO/IEC 29500 URL](../includes/iso-iec-29500-link.md)] specification introduces the **table** (\<**table**\>) element.
27+
The following information from the [!include[ISO/IEC 29500 URL](../includes/iso-iec-29500-link.md)] specification introduces the `table` (`<table/>`) element.
2928

3029
A table helps organize and provide structure to lists of information in
3130
a worksheet. Tables have clearly labeled columns, rows, and data
@@ -54,7 +53,7 @@ the various attributes for the particular table object.
5453
A SpreadsheetML table is a logical construct that specifies that a range
5554
of data belongs to a single dataset. SpreadsheetML already uses a
5655
table-like model for specifying values in rows and columns, but you can
57-
also label a subset of the sheet as a **table**
56+
also label a subset of the sheet as a `table`
5857
and give it certain properties that are useful for analysis. A table in
5958
SpreadsheetML allows you to analyze data in new ways, such as by using
6059
filtering, formatting and binding of data.
@@ -64,23 +63,23 @@ in a separate part inside the package. The table part does not contain
6463
any table data. The data is maintained in the worksheet cells. For more
6564
information about data is stored in the worksheet, see [Working with sheets](working-with-sheets.md).
6665

67-
The following table lists the common Open XML SDK classes used when working with the **Table** class.
66+
The following table lists the common Open XML SDK classes used when working with the `Table` class.
6867

6968
| **SpreadsheetML Element** | **Open XML SDK Class** |
7069
|---------------------------|------------------------------------------------------------------------------------------------------------------------|
71-
| tableColumn | <xref:DocumentFormat.OpenXml.Spreadsheet.TableColumn> |
72-
| autoFilter | <xref:DocumentFormat.OpenXml.Spreadsheet.Table.AutoFilter*> |
70+
| `<tableColumn/>` | <xref:DocumentFormat.OpenXml.Spreadsheet.TableColumn> |
71+
| `<autoFilter/>` | <xref:DocumentFormat.OpenXml.Spreadsheet.Table.AutoFilter*> |
7372

7473
## Open XML SDK Table Class
7574

76-
The Open XML SDK**Table** class represents
77-
the table (\<**table**\>) element defined in
75+
The Open XML SDK `Table` class represents
76+
the table (`<table/>`) element defined in
7877
the Open XML File Format schema for SpreadsheetML documents. Use the
79-
**Table** class to manipulate individual
80-
\<**table**\> elements in a SpreadsheetML
78+
`Table` class to manipulate individual
79+
`<table/>` elements in a SpreadsheetML
8180
document.
8281

83-
The following information from the ISO/IEC 29500 specification introduces the **table** (\<**table**\>) element.
82+
The following information from the ISO/IEC 29500 specification introduces the `table` (`<table/>`) element.
8483

8584
An instance of this part type contains a description of a single table
8685
and its autofilter information. (The data for the table is stored in the
@@ -96,32 +95,32 @@ enable autofiltering you must define at least one autofilter, which can
9695
be empty. If you do not define any autofilter, autofiltering will be
9796
disabled when the document is opened in Excel.
9897

99-
The **table** element has several attributes
100-
used to identify the table and the data range it covers. The **id** and **name**
101-
attributes must be unique across all table parts. The **displayName** attribute must be unique across all
98+
The `table` element has several attributes
99+
used to identify the table and the data range it covers. The `id` and `name`
100+
attributes must be unique across all table parts. The `displayName` attribute must be unique across all
102101
table parts and unique across all defined names in the workbook. The
103-
**name** attribute is used by the object model
104-
in Excel. The **displayName** attribute is used
105-
by references in formulas. The **ref**
102+
`name` attribute is used by the object model
103+
in Excel. The `displayName` attribute is used
104+
by references in formulas. The `ref`
106105
attribute is used to identify the cell range that the table covers. This
107106
includes not only the table data, but also the table header containing
108107
column names. For more information about table attributes, see the
109108
ISO/IEC 29500 specification.
110109

111110
### Table Column Class
112111

113-
To add columns to your table you add new **tableColumn** elements to the **tableColumns** collection. The collection has a
112+
To add columns to your table you add new `tableColumn` elements to the `tableColumns` collection. The collection has a
114113
count attribute that tracks the number of columns.
115114

116115
The following information from the ISO/IEC 29500 specification
117-
introduces the **TableColumn** (\<**tableColumn**\>) element.
116+
introduces the `TableColumn` (`<tableColumn/>`) element.
118117

119118
An element representing a single column for this table.
120119

121120
### Auto Filter Class
122121

123122
The following information from the ISO/IEC 29500 specification
124-
introduces the **AutoFilter** (\<**autoFilter**\>) element.
123+
introduces the `AutoFilter` (`<autoFilter/>`) element.
125124

126125
AutoFilter temporarily hides rows based on filter criteria, which is
127126
applied column by column to a table of data in the worksheet. This
@@ -151,7 +150,7 @@ The table contains three columns and three rows, plus a column header.
151150

152151
The following XML defines the worksheet and is contained in the
153152
"sheet1.xml" file. The worksheet XML file contains the actual data
154-
displayed in the table, and contains the **tablePart** element that references the
153+
displayed in the table, and contains the `tablePart` element that references the
155154
"table1.xml" file, which contains the table definition.
156155

157156
```xml

0 commit comments

Comments
 (0)