You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/includes/spreadsheet/open-spreadsheet.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ in the document is represented in the package as XML using `SpreadsheetML` marku
9
9
10
10
To create the class instance from the document that you call one of the
11
11
<xref:DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.Open*> methods. Several are provided, each
12
-
with a different signature. The sample code in this topic uses the [Open(String, Boolean)](/dotnet/api/documentformat.openxml.packaging.spreadsheetdocument.open?view=openxml-3.0.1#documentformat-openxml-packaging-spreadsheetdocument-open(system-string-system-boolean)) method with a
12
+
with a different signature. The sample code in this topic uses the @"DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.Open*?text=Open(String, Boolean)" method with a
13
13
signature that requires two parameters. The first parameter takes a full
14
14
path string that represents the document that you want to open. The
15
15
second parameter is either `true` or `false` and represents whether you want the file to
Copy file name to clipboardExpand all lines: docs/includes/spreadsheet/spreadsheet-object.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,13 @@ SpreadsheetML elements. You can find these classes in the `DocumentFormat.OpenXM
43
43
following table lists the class names of the classes that correspond to
44
44
the `workbook`, `sheets`, `sheet`, `worksheet`, and `sheetData` elements.
45
45
46
-
**SpreadsheetML Element**|**Open XML SDK Class**|**Description**
47
-
--|--|--
48
-
`<workbook/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Workbook>|The root element for the main document part.
49
-
`<sheets/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Sheets>|The container for the block level structures such as sheet, fileVersion, and others specified in the [!include[ISO/IEC 29500 URL](../includes/iso-iec-29500-link.md)] specification.
50
-
`<sheet/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Sheet>|A sheet that points to a sheet definition file.
51
-
`<worksheet/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Worksheet>|A sheet definition file that contains the sheet data.
52
-
`<sheetData/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.SheetData>|The cell table, grouped together by rows.
53
-
`<row/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Row>|A row in the cell table.
54
-
`<c/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Cell>|A cell in a row.
55
-
`<v/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.CellValue>|The value of a cell.
46
+
|**SpreadsheetML Element**|**Open XML SDK Class**|**Description**|
47
+
|--|--|--|
48
+
|`<workbook/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Workbook>|The root element for the main document part.|
49
+
| `<sheets/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Sheets>|The container for the block level structures such as sheet, fileVersion, and |others specified in the [!include[ISO/IEC 29500 URL](../iso-iec-29500-link.md)] specification.
50
+
|`<sheet/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Sheet>|A sheet that points to a sheet definition file.|
51
+
|`<worksheet/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Worksheet>|A sheet definition file that contains the sheet data.|
52
+
|`<sheetData/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.SheetData>|The cell table, grouped together by rows.|
53
+
|`<row/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Row>|A row in the cell table.|
54
+
|`<c/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.Cell>|A cell in a row.|
55
+
|`<v/>`|<xref:DocumentFormat.OpenXml.Spreadsheet.CellValue>|The value of a cell.|
In the Open XML SDK, the <xref:DocumentFormat.OpenXml.Packaging.PresentationDocument> class represents a presentation document package. To work with a presentation document, first create an instance of the `PresentationDocument` class, and then work with that instance. To create the class instance from the document call one of the `Open` method overloads. The code in this topic uses the <xref:DocumentFormat.OpenXml.Packaging.PresentationDocument.Open#documentformat-openxml-packaging-presentationdocument-open(system-string-system-boolean)> method, which takes a file path as the first parameter to specify the file to open, and a Boolean value as the second parameter to specify whether a document is editable. Set this second parameter to `false` to open the file for read-only access, or `true` if you want to open the file for read/write access. The code in this topic opens the file twice, once to count the number of slides and once to delete a specific slide. When you count the number of slides in a presentation, it is best to open the file for read-only access to protect the file against accidental writing. The following `using` statement opens the file for read-only access. In this code example, the `presentationFile` parameter is a string that represents the path for the file from which you want to open the document.
35
+
In the Open XML SDK, the <xref:DocumentFormat.OpenXml.Packaging.PresentationDocument> class represents a presentation document package. To work with a presentation document, first create an instance of the `PresentationDocument` class, and then work with that instance. To create the class instance from the document call one of the `Open` method overloads. The code in this topic uses the <xref:DocumentFormat.OpenXml.Packaging.PresentationDocument.Open> method, which takes a file path as the first parameter to specify the file to open, and a Boolean value as the second parameter to specify whether a document is editable. Set this second parameter to `false` to open the file for read-only access, or `true` if you want to open the file for read/write access. The code in this topic opens the file twice, once to count the number of slides and once to delete a specific slide. When you count the number of slides in a presentation, it is best to open the file for read-only access to protect the file against accidental writing. The following `using` statement opens the file for read-only access. In this code example, the `presentationFile` parameter is a string that represents the path for the file from which you want to open the document.
0 commit comments