Skip to content

Commit

Permalink
Extract code snippets from markdown files (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeebowen authored Jan 8, 2024
1 parent 8ebb0a8 commit 04deec7
Show file tree
Hide file tree
Showing 39 changed files with 352 additions and 1,554 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,7 @@ processing document.


-----------------------------------------------------------------------------
## Packages and Document Parts
An Open XML document is stored as a package, whose format is defined by
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
package can have multiple parts with relationships between them. The
relationship between parts controls the category of the document. A
document can be defined as a word-processing document if its
package-relationship item contains a relationship to a main document
part. If its package-relationship item contains a relationship to a
presentation part it can be defined as a presentation document. If its
package-relationship item contains a relationship to a workbook part, it
is defined as a spreadsheet document. In this how-to topic, you will use
a word-processing document package.
[!include[Structure](../includes/word/packages-and-document-parts.md)]


-----------------------------------------------------------------------------
Expand Down
6 changes: 1 addition & 5 deletions docs/general/how-to-add-a-new-document-part-to-a-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ ms.localizationpriority: medium

This topic shows how to use the classes in the Open XML SDK for Office to add a document part (file) to a word processing document programmatically.



## Packages and document parts

An Open XML document is stored as a package, whose format is defined by [ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The package can have multiple parts with relationships between them. The relationship between parts controls the category of the document. A document can be defined as a word-processing document if its package-relationship item contains a relationship to a main document part. If its package-relationship item contains a relationship to a presentation part it can be defined as a presentation document. If its package-relationship item contains a relationship to a workbook part, it is defined as a spreadsheet document. In this how-to topic, you'll use a word-processing document package.
[!include[Structure](../includes/word/packages-and-document-parts.md)]

## Get a WordprocessingDocument object

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,7 @@ programmatically.


--------------------------------------------------------------------------------
## Packages and Document Parts
An Open XML document is stored as a package, whose format is defined by
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
package can have multiple parts with relationships between them. The
relationship between parts controls the category of the document. A
document can be defined as a word-processing document if its
package-relationship item contains a relationship to a main document
part. If its package-relationship item contains a relationship to a
presentation part it can be defined as a presentation document. If its
package-relationship item contains a relationship to a workbook part, it
is defined as a spreadsheet document. In this how-to topic, you will use
a word-processing document package.
[!include[Structure](../includes/word/packages-and-document-parts.md)]


--------------------------------------------------------------------------------
Expand Down
16 changes: 1 addition & 15 deletions docs/general/how-to-create-a-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,7 @@ This topic shows how to use the classes in the Open XML SDK for
Office to programmatically create a word processing document package
from content in the form of **WordprocessingML** XML markup.



## Packages and Document Parts

An Open XML document is stored as a package, whose format is defined by
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
package can have multiple parts with relationships between them. The
relationship between parts controls the category of the document. A
document can be defined as a word-processing document if its
package-relationship item contains a relationship to a main document
part. If its package-relationship item contains a relationship to a
presentation part it can be defined as a presentation document. If its
package-relationship item contains a relationship to a workbook part, it
is defined as a spreadsheet document. In this how-to topic, you will use
a word-processing document package.
[!include[Structure](../includes/word/packages-and-document-parts.md)]


## Getting a WordprocessingDocument Object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,7 @@ document programmatically.


--------------------------------------------------------------------------------
## Packages and Document Parts
An Open XML document is stored as a package, whose format is defined by
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
package can have multiple parts with relationships between them. The
relationship between parts controls the category of the document. A
document can be defined as a word-processing document if its
package-relationship item contains a relationship to a main document
part. If its package-relationship item contains a relationship to a
presentation part it can be defined as a presentation document. If its
package-relationship item contains a relationship to a workbook part, it
is defined as a spreadsheet document. In this how-to topic, you will use
a word-processing document package.
[!include[Structure](../includes/word/packages-and-document-parts.md)]


---------------------------------------------------------------------------------
Expand Down
13 changes: 1 addition & 12 deletions docs/general/how-to-remove-a-document-part-from-a-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,7 @@ programmatically.


--------------------------------------------------------------------------------
## Packages and Document Parts
An Open XML document is stored as a package, whose format is defined by
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
package can have multiple parts with relationships between them. The
relationship between parts controls the category of the document. A
document can be defined as a word-processing document if its
package-relationship item contains a relationship to a main document
part. If its package-relationship item contains a relationship to a
presentation part it can be defined as a presentation document. If its
package-relationship item contains a relationship to a workbook part, it
is defined as a spreadsheet document. In this how-to topic, you will use
a word-processing document package.
[!include[Structure](../includes/word/packages-and-document-parts.md)]


---------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,7 @@ This topic shows how to use the classes in the Open XML SDK for
Office to programmatically replace a document part in a word processing
document.



## Packages and Document Parts

An Open XML document is stored as a package, whose format is defined by
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
package can have multiple parts with relationships between them. The
relationship between parts controls the category of the document. A
document can be defined as a word-processing document if its
package-relationship item contains a relationship to a main document
part. If its package-relationship item contains a relationship to a
presentation part it can be defined as a presentation document. If its
package-relationship item contains a relationship to a workbook part, it
is defined as a spreadsheet document. In this how-to topic, you will use
a word-processing document package.
[!include[Structure](../includes/word/packages-and-document-parts.md)]


## Getting a WordprocessingDocument Object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,7 @@ processing document.


--------------------------------------------------------------------------------
## Packages and Document Parts
An Open XML document is stored as a package, whose format is defined by
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
package can have multiple parts with relationships between them. The
relationship between parts controls the category of the document. A
document can be defined as a word-processing document if its
package-relationship item contains a relationship to a main document
part. If its package-relationship item contains a relationship to a
presentation part it can be defined as a presentation document. If its
package-relationship item contains a relationship to a workbook part, it
is defined as a spreadsheet document. In this how-to topic, you will use
a word-processing document package.
[!include[Structure](../includes/word/packages-and-document-parts.md)]


---------------------------------------------------------------------------------
Expand Down
13 changes: 13 additions & 0 deletions docs/includes/word/packages-and-document-parts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Packages and Document Parts

An Open XML document is stored as a package, whose format is defined by
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
package can have multiple parts with relationships between them. The
relationship between parts controls the category of the document. A
document can be defined as a word-processing document if its
package-relationship item contains a relationship to a main document
part. If its package-relationship item contains a relationship to a
presentation part it can be defined as a presentation document. If its
package-relationship item contains a relationship to a workbook part, it
is defined as a spreadsheet document. In this how-to topic, you will use
a word-processing document package.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ms.suite: office
ms.author: o365devx
author: o365devx
ms.topic: conceptual
ms.date: 11/01/2017
ms.date: 12/05/2023
ms.localizationpriority: medium
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ This topic shows how to use the classes in the Open XML SDK for
Office to delete text from a cell in a spreadsheet document
programmatically.




## Get a SpreadsheetDocument object

In the Open XML SDK, the [SpreadsheetDocument](https://msdn.microsoft.com/library/office/documentformat.openxml.packaging.spreadsheetdocument.aspx) class represents an Excel document package. To open and work with an Excel document, create an instance of the **SpreadsheetDocument** class from the document. After you create the instance from the document, obtain access to the main workbook part that contains the worksheets. The text in the document is represented in the package as XML using **SpreadsheetML** markup.
Expand Down
Loading

0 comments on commit 04deec7

Please sign in to comment.