Skip to content
Permalink
Browse files
Fixing up topics
  • Loading branch information
v-alje committed Nov 16, 2017
1 parent 9edded9 commit 09f63dc8bf2312e8e1f1329dfc1bc0e421459a83
Showing with 1,162 additions and 1,498 deletions.
  1. +4 −4 docs/about-the-open-xml-sdk-2-5.md
  2. +4 −8 docs/how-do-i.md
  3. +5 −8 docs/how-to-accept-all-revisions-in-a-word-processing-document.md
  4. +1 −2 docs/how-to-add-a-comment-to-a-slide-in-a-presentation.md
  5. +1 −2 docs/how-to-add-a-new-document-part-to-a-package.md
  6. +1 −2 docs/how-to-add-custom-ui-to-a-spreadsheet-document.md
  7. +1 −2 docs/how-to-add-tables-to-word-processing-documents.md
  8. +3 −7 docs/how-to-apply-a-style-to-a-paragraph-in-a-word-processing-document.md
  9. +1 −2 docs/how-to-apply-a-theme-to-a-presentation.md
  10. +1 −1 docs/how-to-calculate-the-sum-of-a-range-of-cells-in-a-spreadsheet-document.md
  11. +1 −2 docs/how-to-change-the-print-orientation-of-a-word-processing-document.md
  12. +1 −2 docs/how-to-convert-a-word-processing-document-from-the-docm-to-the-docx-file-format.md
  13. +1 −2 docs/how-to-copy-the-contents-of-an-open-xml-package-part-to-a-document-part-in-a-dif.md
  14. +7 −15 docs/how-to-create-a-presentation-document-by-providing-a-file-name.md
  15. +8 −15 docs/how-to-create-and-add-a-character-style-to-a-word-processing-document.md
  16. +1 −1 docs/how-to-create-and-add-a-paragraph-style-to-a-word-processing-document.md
  17. +1 −2 docs/how-to-delete-a-slide-from-a-presentation.md
  18. +1 −2 docs/how-to-delete-all-the-comments-by-an-author-from-all-the-slides-in-a-presentatio.md
  19. +1 −2 docs/how-to-delete-comments-by-all-or-a-specific-author-in-a-word-processing-document.md
  20. +4 −4 docs/how-to-delete-text-from-a-cell-in-a-spreadsheet.md
  21. +1 −2 docs/how-to-extract-styles-from-a-word-processing-document.md
  22. +4 −8 docs/how-to-get-a-column-heading-in-a-spreadsheet.md
  23. +1 −2 docs/how-to-get-all-the-external-hyperlinks-in-a-presentation.md
  24. +1 −4 docs/how-to-get-all-the-text-in-a-slide-in-a-presentation.md
  25. +12 −0 docs/how-to-open-a-spreadsheet-document-for-read-only-access.md
  26. +12 −2 docs/how-to-open-a-spreadsheet-document-from-a-stream.md
  27. +17 −3 docs/how-to-open-a-word-processing-document-for-read-only-access.md
  28. +11 −3 docs/how-to-open-a-word-processing-document-from-a-stream.md
  29. +11 −7 docs/how-to-parse-and-read-a-large-spreadsheet.md
  30. +10 −3 docs/how-to-remove-a-document-part-from-a-package.md
  31. +13 −6 docs/how-to-remove-hidden-text-from-a-word-processing-document.md
  32. +13 −5 docs/how-to-remove-the-headers-and-footers-from-a-word-processing-document.md
  33. +12 −19 docs/how-to-replace-the-header-in-a-word-processing-document.md
  34. +16 −10 docs/how-to-replace-the-styles-parts-in-a-word-processing-document.md
  35. +10 −2 docs/how-to-replace-the-theme-part-in-a-word-processing-document.md
  36. +11 −4 docs/how-to-retrieve-a-dictionary-of-all-named-ranges-in-a-spreadsheet.md
  37. +18 −4 docs/how-to-retrieve-a-list-of-the-hidden-rows-or-columns-in-a-spreadsheet.md
  38. +13 −4 docs/how-to-retrieve-a-list-of-the-hidden-worksheets-in-a-spreadsheet.md
  39. +12 −4 docs/how-to-retrieve-a-list-of-the-worksheets-in-a-spreadsheet.md
  40. +9 −4 docs/how-to-retrieve-application-property-values-from-a-word-processing-document.md
  41. +8 −2 docs/how-to-retrieve-comments-from-a-word-processing-document.md
  42. +9 −4 docs/how-to-retrieve-the-number-of-slides-in-a-presentation-document.md
  43. +25 −4 docs/how-to-retrieve-the-values-of-cells-in-a-spreadsheet.md
  44. +11 −4 docs/how-to-search-and-replace-text-in-a-document-part.md
  45. +23 −13 docs/how-to-set-a-custom-property-in-a-word-processing-document.md
  46. +18 −22 docs/how-to-set-the-font-for-a-text-run.md
  47. +4 −2 docs/how-to-validate-a-word-processing-document.md
  48. +3 −7 docs/introduction-to-markup-compatibility.md
  49. BIN docs/media/CFW.gif
  50. BIN docs/media/Caution.gif
  51. BIN docs/media/GitHub-Mark-64px.png
  52. BIN docs/media/LastChild.gif
  53. BIN docs/media/adm.gif
  54. BIN docs/media/adm_arch.gif
  55. BIN docs/media/adm_dev.gif
  56. BIN docs/media/adm_dev_arch.gif
  57. BIN docs/media/alert_caution.gif
  58. BIN docs/media/alert_note.gif
  59. BIN docs/media/alert_security.gif
  60. BIN docs/media/arch.gif
  61. BIN docs/media/big_adm.gif
  62. BIN docs/media/big_arch.gif
  63. BIN docs/media/big_dev.gif
  64. BIN docs/media/big_kw.gif
  65. BIN docs/media/box.gif
  66. BIN docs/media/bullet.gif
  67. BIN docs/media/collall.gif
  68. BIN docs/media/collapse.gif
  69. BIN docs/media/collapse_all.gif
  70. BIN docs/media/copycode.gif
  71. BIN docs/media/copycodeHighlight.gif
  72. BIN docs/media/dev.gif
  73. BIN docs/media/dev_arch.gif
  74. BIN docs/media/dropdown.gif
  75. BIN docs/media/dropdownHover.gif
  76. BIN docs/media/drpdown.gif
  77. BIN docs/media/drpdown_orange.gif
  78. BIN docs/media/drpdown_orange_up.gif
  79. BIN docs/media/drpup.gif
  80. BIN docs/media/exp.gif
  81. BIN docs/media/expall.gif
  82. BIN docs/media/expand_all.gif
  83. BIN docs/media/filter1a.gif
  84. BIN docs/media/filter1c.gif
  85. BIN docs/media/footer.gif
  86. BIN docs/media/gradient.gif
  87. BIN docs/media/greencheck.gif
  88. BIN docs/media/greychck.gif
  89. BIN docs/media/header_prev_next.jpg
  90. BIN docs/media/header_sql_tutorial_blank.jpg
  91. BIN docs/media/header_sql_tutorial_logo.GIF
  92. BIN docs/media/kw.gif
  93. BIN docs/media/kw_adm.gif
  94. BIN docs/media/kw_adm_arch.gif
  95. BIN docs/media/kw_adm_dev.gif
  96. BIN docs/media/kw_adm_dev_arch.gif
  97. BIN docs/media/kw_arch.gif
  98. BIN docs/media/kw_dev.gif
  99. BIN docs/media/kw_dev_arch.gif
  100. BIN docs/media/load.gif
  101. BIN docs/media/load_hover.gif
  102. BIN docs/media/note.gif
  103. BIN docs/media/pencil.GIF
  104. BIN docs/media/privclass.gif
  105. BIN docs/media/privdelegate.gif
  106. BIN docs/media/privdelicate.gif
  107. BIN docs/media/privenum.gif
  108. BIN docs/media/privenumeration.gif
  109. BIN docs/media/privevent.gif
  110. BIN docs/media/privextension.gif
  111. BIN docs/media/privfield.gif
  112. BIN docs/media/privinterface.gif
  113. BIN docs/media/privmethod.gif
  114. BIN docs/media/privproperty.gif
  115. BIN docs/media/privstructure.gif
  116. BIN docs/media/protclass.gif
  117. BIN docs/media/protdelegate.gif
  118. BIN docs/media/protdeligate.gif
  119. BIN docs/media/protenum.gif
  120. BIN docs/media/protenumeration.gif
  121. BIN docs/media/protevent.gif
  122. BIN docs/media/protextension.gif
  123. BIN docs/media/protfield.gif
  124. BIN docs/media/protinterface.gif
  125. BIN docs/media/protmethod.gif
  126. BIN docs/media/protoperator.gif
  127. BIN docs/media/protproperty.gif
  128. BIN docs/media/protstructure.gif
  129. BIN docs/media/pubclass.gif
  130. BIN docs/media/pubdelegate.gif
  131. BIN docs/media/pubenum.gif
  132. BIN docs/media/pubenumeration.gif
  133. BIN docs/media/pubevent.gif
  134. BIN docs/media/pubextension.gif
  135. BIN docs/media/pubfield.gif
  136. BIN docs/media/pubinterface.gif
  137. BIN docs/media/pubmethod.gif
  138. BIN docs/media/puboperator.gif
  139. BIN docs/media/pubproperty.gif
  140. BIN docs/media/pubstructure.gif
  141. BIN docs/media/requirements1a.gif
  142. BIN docs/media/requirements1c.gif
  143. BIN docs/media/save.gif
  144. BIN docs/media/save_hover.gif
  145. BIN docs/media/security.gif
  146. BIN docs/media/seealso1a.gif
  147. BIN docs/media/seealso1c.gif
  148. BIN docs/media/static.gif
  149. BIN docs/media/xna.gif
  150. +11 −22 docs/open-xml-sdk-2-5.md
  151. +10 −24 docs/packages-and-general.md
  152. +17 −44 docs/presentations.md
  153. +18 −48 docs/spreadsheets.md
  154. +205 −226 docs/structure-of-a-presentationml-document.md
  155. +22 −54 docs/structure-of-a-spreadsheetml-document.md
  156. +6 −8 docs/structure-of-a-wordprocessingml-document.md
  157. +5 −10 docs/understanding-the-open-xml-file-formats.md
  158. +33 −85 docs/what-s-new-in-the-open-xml-sdk-2-5.md
  159. +28 −78 docs/word-processing.md
  160. +74 −83 docs/working-with-animation.md
  161. +31 −39 docs/working-with-comments.md
  162. +41 −64 docs/working-with-conditional-formatting.md
  163. +2 −3 docs/working-with-formulas.md
  164. +23 −35 docs/working-with-handout-master-slides.md
  165. +19 −28 docs/working-with-notes-slides.md
  166. +7 −11 docs/working-with-paragraphs.md
  167. +2 −4 docs/working-with-pivottables.md
  168. +26 −42 docs/working-with-presentation-slides.md
  169. +9 −18 docs/working-with-presentationml-documents.md
  170. +68 −90 docs/working-with-presentations.md
  171. +5 −10 docs/working-with-runs.md
  172. +30 −47 docs/working-with-sheets.md
  173. +21 −34 docs/working-with-slide-layouts.md
  174. +38 −52 docs/working-with-slide-masters.md
  175. +8 −16 docs/working-with-spreadsheetml-documents.md
  176. +13 −22 docs/working-with-tables.md
  177. +25 −47 docs/working-with-the-calculation-chain.md
  178. +5 −11 docs/working-with-the-shared-string-table.md
  179. +4 −4 docs/working-with-wordprocessingml-documents.md
@@ -27,7 +27,7 @@ The document parts in an Open XML package are created as XML markup. Because XML

Structurally, an Open XML document is an Open Packaging Conventions (OPC) package. As stated previously, a package is composed of a collection of document parts. Each part has a part name that consists of a sequence of segments or a pathname such as "/word/theme/theme1.xml." The package contains a [Content\_Types].xml part that allows you to determine the content type of all document parts in the package. A set of explicit relationships for a source package or part is contained in a relationships part that ends with the .rels extension.

Word processing documents are described by using WordprocessingML markup. For more information, see [Working with WordprocessingML documents (Open XML SDK)](working-with-wordprocessingml-documents.htm). A WordprocessingML document is composed of a collection of stories where each story is one of the following:
Word processing documents are described by using WordprocessingML markup. For more information, see [Working with WordprocessingML documents (Open XML SDK)](working-with-wordprocessingml-documents.md). A WordprocessingML document is composed of a collection of stories where each story is one of the following:

- Main document (the only required story)

@@ -41,7 +41,7 @@ Word processing documents are described by using WordprocessingML markup. For mo

- Footnote and endnote

Presentations are described by using PresentationML markup. For more information, see [Working with PresentationML documents (Open XML SDK)](working-with-presentationml-documents.htm). Presentation packages can contain the following document parts:
Presentations are described by using PresentationML markup. For more information, see [Working with PresentationML documents (Open XML SDK)](working-with-presentationml-documents.md). Presentation packages can contain the following document parts:

- Slide master

@@ -53,7 +53,7 @@ Presentations are described by using PresentationML markup. For more information

- Notes

Spreadsheet workbooks are described by using SpreadsheetML markup. For more information, see [Working with SpreadsheetML documents (Open XML SDK)](working-with-spreadsheetml-documents.htm). Workbook packages can contain:
Spreadsheet workbooks are described by using SpreadsheetML markup. For more information, see [Working with SpreadsheetML documents (Open XML SDK)](working-with-spreadsheetml-documents.md). Workbook packages can contain:

- Workbook part (required part)

@@ -106,5 +106,5 @@ The SDK supports the following common tasks/scenarios:

- <span class="label">Fixes to the Open XML SDK 2.0 for Microsoft Office</span>—Open XML SDK 2.5 includes fixes to known issues in the Open XML SDK 2.0 for Microsoft Office. These include lost whitespaces in PowerPoint presentations and an issue with the Custom UI in Word documents where a specified argument was reported as being out of the range of valid values.

You can find more information about these and other new features of the Open XML SDK 2.5 in the [What's new in the Open XML SDK 2.5 for Office](what-s-new-in-the-open-xml-sdk-2-5.htm) article.
You can find more information about these and other new features of the Open XML SDK 2.5 in the [What's new in the Open XML SDK 2.5 for Office](what-s-new-in-the-open-xml-sdk-2-5.md) article.

@@ -21,14 +21,10 @@ This section provides how-to topics for working with the Open XML SDK

--------------------------------------------------------------------------------

<span sdata="link"> [Presentations (Open XML
SDK)](presentations.htm) </span>
[Presentations (Open XML SDK)](presentations.md)

<span sdata="link"> [Packages and general (Open XML
SDK)](packages-and-general.htm) </span>
[Packages and general (Open XML SDK)](packages-and-general.md)

<span sdata="link"> [Spreadsheets (Open XML
SDK)](spreadsheets.htm) </span>
[Spreadsheets (Open XML SDK)](spreadsheets.md)

<span sdata="link"> [Word processing (Open XML
SDK)](word-processing.htm) </span>
[Word processing (Open XML SDK)](word-processing.md)
@@ -116,8 +116,7 @@ The element specifies that there was a revision to the paragraph properties at 0
-----------------------------------------------------------------------------
The following information from the [ISO/IEC
29500](http://go.microsoft.com/fwlink/?LinkId=194337) specification
The following information from the [ISO/IEC 29500](http://go.microsoft.com/fwlink/?LinkId=194337) specification
introduces the Deleted element (**del**).
**del (Deleted Paragraph)**
@@ -158,8 +157,7 @@ and this deletion was tracked as a revision.
-----------------------------------------------------------------------------
The following information from the [ISO/IEC
29500](http://go.microsoft.com/fwlink/?LinkId=194337) specification
The following information from the [ISO/IEC 29500](http://go.microsoft.com/fwlink/?LinkId=194337) specification
introduces the Inserted element (**ins**).
**ins (Inserted Table Row)**
@@ -265,6 +263,7 @@ accepting deletion changes.
deletion.Remove();
}
```

```vb
' Handle the deletions.
Dim deletions As List(Of OpenXmlElement) = _
@@ -520,9 +519,7 @@ The following is the complete sample code in both C\# and Visual Basic.

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)

[Accepting Revisions in Open XML Word-Processing
Documents](http://msdn.microsoft.com/en-us/library/ee836138.aspx)
[Accepting Revisions in Open XML Word-Processing Documents](http://msdn.microsoft.com/en-us/library/ee836138.aspx)

@@ -784,7 +784,6 @@ comment string to the first slide in the presentation file Myppt1.pptx.

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)


@@ -231,8 +231,7 @@ Following is the complete code example in both C\# and Visual Basic.

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)



@@ -22,8 +22,7 @@ Microsoft Excel 2010 or Microsoft Excel 2013 worksheet. It contains an
example **AddCustomUI** method to illustrate
this task.

To use the sample code in this topic, you must install the [Open XML SDK
2.0](http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=5124).
To use the sample code in this topic, you must install the [Open XML SDK 2.0](http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=5124).
You must explicitly reference the following assemblies in your project:

- WindowsBase
@@ -20,8 +20,7 @@ This topic shows how to use the classes in the Open XML SDK 2.5 for
Office to programmatically add a table to a word processing document. It
contains an example **AddTable** method to illustrate this task.

To use the sample code in this topic, you must install the [Open XML SDK
2.5](http://www.microsoft.com/en-us/download/details.aspx?id=30425). You
To use the sample code in this topic, you must install the [Open XML SDK 2.5](http://www.microsoft.com/en-us/download/details.aspx?id=30425). You
must explicitly reference the following assemblies in your project:

- WindowsBase
@@ -61,7 +61,7 @@ to which to apply the style.
The following sections in this topic explain the implementation of this
method and the supporting code, as well as how to call it. The complete
sample code listing can be found in the [Sample Code](8d465a77-6c1b-453a-8375-ecf80d2f1bdc.htm#sampleCode) section at
sample code listing can be found in the [Sample Code](how-to-apply-a-style-to-a-paragraph-in-a-word-processing-document.md#sampleCode) section at
the end of this topic.
@@ -161,7 +161,7 @@ class="keyword">r</span>, and **t** elements.
For more information about the overall structure of the parts and
elements of a WordprocessingML document, see <span
sdata="link">[Structure of a WordprocessingML document (Open XML
SDK)](structure-of-a-wordprocessingml-document.htm)</span>.
SDK)](structure-of-a-wordprocessingml-document.md)</span>.


----------------------------------------------------------------------------
@@ -982,9 +982,5 @@ The following is the complete code sample in both C\# and Visual Basic.

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)



[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)

@@ -700,8 +700,7 @@ would see the same theme of the file Myppt9-theme.pptx.
#### Other resources
[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
@@ -336,7 +336,7 @@ the worksheet.
worksheetPart.Worksheet.Save()
End Using
End Subxxxxxxx
End Sub
```

To get the row index the code passes a parameter that represents the
@@ -547,7 +547,6 @@ Basic.

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)


@@ -92,8 +92,7 @@ contain content equivalent to an external XML file, binary file, image
file, and so on, depending on the type. The standard that defines how
Open XML documents are stored in .zip files is called the Open Packaging
Conventions. For more information about the Open Packaging Conventions,
see [ISO/IEC
29500-2](http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=51459).
see [ISO/IEC 29500-2](http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=51459).

When you create and save a VBA macro in a document, Word adds a new
binary part named vbaProject that contains the internal representation
@@ -298,8 +298,7 @@ Following is the complete sample code in both C\# and Visual Basic.

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)



@@ -793,26 +793,18 @@ presentation, given a file path.

#### Concepts

<span sdata="link"> [About the Open XML SDK 2.5 for
Office](about-the-open-xml-sdk-2-5.htm) </span>
[About the Open XML SDK 2.5 for Office](about-the-open-xml-sdk-2-5.md)

[Structure of a PresentationML
Document](structure-of-a-presentationml-document.htm)
[Structure of a PresentationML Document](structure-of-a-presentationml-document.md)

<span sdata="link"> [How to: Insert a new slide into a presentation
(Open XML SDK)](how-to-insert-a-new-slide-into-a-presentation.htm) </span>
[How to: Insert a new slide into a presentation (Open XML SDK)](how-to-insert-a-new-slide-into-a-presentation.md)

<span sdata="link"> [How to: Delete a slide from a presentation (Open
XML SDK)](how-to-delete-a-slide-from-a-presentation.htm) </span>
[How to: Delete a slide from a presentation (Open XML SDK)](how-to-delete-a-slide-from-a-presentation.md)

<span sdata="link"> [How to: Retrieve the number of slides in a
presentation document (Open XML
SDK)](how-to-retrieve-the-number-of-slides-in-a-presentation-document.htm) </span>
[How to: Retrieve the number of slides in a presentation document (Open XML SDK)](how-to-retrieve-the-number-of-slides-in-a-presentation-document.md)

<span sdata="link"> [How to: Apply a theme to a presentation (Open XML
SDK)](how-to-apply-a-theme-to-a-presentation.htm) </span>
[How to: Apply a theme to a presentation (Open XML SDK)](how-to-apply-a-theme-to-a-presentation.md)

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
@@ -70,8 +70,7 @@ in the user interface).
ByVal styleid As String, ByVal stylename As String, Optional ByVal aliases As String = "")
```
The complete code listing for the method can be found in the [Sample
Code](c38f2c94-f0b5-4bb5-8c95-02e556d4e9f1.htm#sampleCode) section.
The complete code listing for the method can be found in the [Sample Code](how-to-create-and-add-a-character-style-to-a-word-processing-document.md#sampleCode) section.
---------------------------------------------------------------------------------
@@ -263,7 +262,7 @@ type attribute:

- Default paragraph + character properties

[*Example*: Consider a style called Heading 1 in a document as shown in
*Example*: Consider a style called Heading 1 in a document as shown in
the following code example.

```xml
@@ -329,8 +328,7 @@ range of text.
Figure 1. Text with a character style applied


![A character style applied to some
text](../media/OpenXmlCon_CreateCharacterStyle_Fig1.gif)
![A character style applied to some text](../media/OpenXmlCon_CreateCharacterStyle_Fig1.gif)


--------------------------------------------------------------------------------
@@ -362,17 +360,13 @@ styles element is created and saved to the part.

--------------------------------------------------------------------------------

To create the style, the code instantiates the <span sdata="cer"
target="T:DocumentFormat.OpenXml.Wordprocessing.Style"><span
To create the style, the code instantiates the <span sdata="cer" target="T:DocumentFormat.OpenXml.Wordprocessing.Style"><span
class="nolink">Style</span></span> class and sets certain properties,
such as the <span sdata="cer"
target="P:DocumentFormat.OpenXml.Wordprocessing.Style.Type"><span
such as the <span sdata="cer" target="P:DocumentFormat.OpenXml.Wordprocessing.Style.Type"><span
class="nolink">Type</span></span> of style (paragraph), the <span
sdata="cer"
target="P:DocumentFormat.OpenXml.Wordprocessing.Style.StyleId"><span
sdata="cer" target="P:DocumentFormat.OpenXml.Wordprocessing.Style.StyleId"><span
class="nolink">StyleId</span></span>, and whether the style is a <span
sdata="cer"
target="P:DocumentFormat.OpenXml.Wordprocessing.Style.CustomStyle"><span
sdata="cer" target="P:DocumentFormat.OpenXml.Wordprocessing.Style.CustomStyle"><span
class="nolink">CustomStyle</span></span>.

```csharp
@@ -406,8 +400,7 @@ corresponding class, and then call the <span sdata="cer"
target="M:DocumentFormat.OpenXml.OpenXmlElement.Append(DocumentFormat.OpenXml.OpenXmlElement[])"><span
class="nolink">Append([])</span></span> method to add the child element
to the style. For more information about these properties, see section
17.7 of the [ISO/IEC
29500](http://go.microsoft.com/fwlink/?LinkId=194337) specification.
17.7 of the [ISO/IEC 29500](http://go.microsoft.com/fwlink/?LinkId=194337) specification.

```csharp
// Create and add the child elements (properties of the style).
@@ -729,7 +729,7 @@ C\# and Visual Basic.

#### Concepts

[How to: Apply a style to a paragraph in a word processing document (Open XML SDK)](how-to-apply-a-style-to-a-paragraph-in-a-word-processing-document.htm)
[How to: Apply a style to a paragraph in a word processing document (Open XML SDK)](how-to-apply-a-style-to-a-paragraph-in-a-word-processing-document.md)

#### Other resources

@@ -774,5 +774,4 @@ Following is the complete sample code in both C\# and Visual Basic.

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
@@ -464,5 +464,4 @@ The following is the complete sample code in both C\# and Visual Basic.
#### Other resources
[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
@@ -497,5 +497,4 @@ The following is the complete code sample in both C\# and Visual Basic.

#### Other resources

[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
@@ -684,10 +684,10 @@ The following is the complete code sample in both C\# and Visual Basic.

#### Other resources

[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)

[Language-Integrated Query (LINQ)](http://msdn.microsoft.com/en-us/library/bb397926.aspx)
[Language-Integrated Query (LINQ)](http://msdn.microsoft.com/en-us/library/bb397926.aspx)

[Lambda Expressions](http://msdn.microsoft.com/en-us/library/bb531253.aspx)
[Lambda Expressions](http://msdn.microsoft.com/en-us/library/bb531253.aspx)

[Lambda Expressions (C\# Programming Guide)](http://msdn.microsoft.com/en-us/library/bb397687.aspx)
[Lambda Expressions (C\# Programming Guide)](http://msdn.microsoft.com/en-us/library/bb397687.aspx)
@@ -87,8 +87,7 @@ requested does not exist).
Optional ByVal getStylesWithEffectsPart As Boolean = True) As XDocument
```
The complete code listing for the method can be found in the [Sample
Code](20258c39-9411-41f2-8463-e94a4b0fa326.htm#sampleCode) section.
The complete code listing for the method can be found in the [Sample Code](how-to-extract-styles-from-a-word-processing-document.md#sampleCode) section.
--------------------------------------------------------------------------------
@@ -457,14 +457,10 @@ Following is the complete sample code in both C\# and Visual Basic.
#### Other resources
[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Language-Integrated Query
(LINQ)](http://msdn.microsoft.com/en-us/library/bb397926.aspx)
[Language-Integrated Query (LINQ)](http://msdn.microsoft.com/en-us/library/bb397926.aspx)
[Lambda
Expressions](http://msdn.microsoft.com/en-us/library/bb531253.aspx)
[Lambda Expressions](http://msdn.microsoft.com/en-us/library/bb531253.aspx)
[Lambda Expressions (C\# Programming
Guide)](http://msdn.microsoft.com/en-us/library/bb397687.aspx)
[Lambda Expressions (C\# Programming Guide)](http://msdn.microsoft.com/en-us/library/bb397687.aspx)
@@ -374,5 +374,4 @@ get the list of URIs in your presentation.
#### Other resources
[Open XML SDK 2.5 class library
reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)
[Open XML SDK 2.5 class library reference](http://msdn.microsoft.com/library/36c8a76e-ce1b-5959-7e85-5d77db7f46d6(Office.15).aspx)

0 comments on commit 09f63dc

Please sign in to comment.