Skip to content

Commit 04deec7

Browse files
authored
Extract code snippets from markdown files (#296)
1 parent 8ebb0a8 commit 04deec7

File tree

39 files changed

+352
-1554
lines changed

39 files changed

+352
-1554
lines changed

docs/general/how-to-add-a-new-document-part-that-receives-a-relationship-id-to-a-package.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,7 @@ processing document.
2424

2525

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

4029

4130
-----------------------------------------------------------------------------

docs/general/how-to-add-a-new-document-part-to-a-package.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ ms.localizationpriority: medium
1717

1818
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.
1919

20-
21-
22-
## Packages and document parts
23-
24-
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.
20+
[!include[Structure](../includes/word/packages-and-document-parts.md)]
2521

2622
## Get a WordprocessingDocument object
2723

docs/general/how-to-copy-the-contents-of-an-open-xml-package-part-to-a-document-part-in-a-dif.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,7 @@ programmatically.
2525

2626

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

4130

4231
--------------------------------------------------------------------------------

docs/general/how-to-create-a-package.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,7 @@ This topic shows how to use the classes in the Open XML SDK for
2121
Office to programmatically create a word processing document package
2222
from content in the form of **WordprocessingML** XML markup.
2323

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

4026

4127
## Getting a WordprocessingDocument Object

docs/general/how-to-get-the-contents-of-a-document-part-from-a-package.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,7 @@ document programmatically.
2323

2424

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

3928

4029
---------------------------------------------------------------------------------

docs/general/how-to-remove-a-document-part-from-a-package.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,7 @@ programmatically.
2323

2424

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

3928

4029
---------------------------------------------------------------------------------

docs/general/how-to-replace-the-theme-part-in-a-word-processing-document.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,7 @@ This topic shows how to use the classes in the Open XML SDK for
2020
Office to programmatically replace a document part in a word processing
2121
document.
2222

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

3925

4026
## Getting a WordprocessingDocument Object

docs/general/how-to-search-and-replace-text-in-a-document-part.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,7 @@ processing document.
2323

2424

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

3928

4029
---------------------------------------------------------------------------------
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Packages and Document Parts
2+
3+
An Open XML document is stored as a package, whose format is defined by
4+
[ISO/IEC 29500-2](https://www.iso.org/standard/71691.html). The
5+
package can have multiple parts with relationships between them. The
6+
relationship between parts controls the category of the document. A
7+
document can be defined as a word-processing document if its
8+
package-relationship item contains a relationship to a main document
9+
part. If its package-relationship item contains a relationship to a
10+
presentation part it can be defined as a presentation document. If its
11+
package-relationship item contains a relationship to a workbook part, it
12+
is defined as a spreadsheet document. In this how-to topic, you will use
13+
a word-processing document package.

docs/presentation/how-to-apply-a-theme-to-a-presentation.md

Lines changed: 1 addition & 1 deletion
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: 12/05/2023
1515
ms.localizationpriority: medium
1616
---
1717

0 commit comments

Comments
 (0)