Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ It then adds the MainDocumentPart part in the new word processing document, with
The code then adds the `DigitalSignatureOriginPart` part, the `ExtendedFilePropertiesPart` part, and the `ThumbnailPart` part in the new word processing document with realtionship IDs rId4, rId5, and rId6.

> [!NOTE]
> The <xref:DocumentFormat.OpenXml.Packaging.WordprocessingDocument.AddNewPart*> method creates a relationship from the current document part to the new document part. This method returns the new document part. Also, you can use the <a href="xref:DocumentFormat.OpenXml.Packaging.DataPart.FeedData*?displayProperty=nameWithType"/> method to fill the document part.
> The <xref:DocumentFormat.OpenXml.Packaging.WordprocessingDocument.AddNewPart*> method creates a relationship from the current document part to the new document part. This method returns the new document part. Also, you can use the <DocumentFormat.OpenXml.Packaging.DataPart.FeedData*> method to fill the document part.

## Sample Code

Expand Down
2 changes: 1 addition & 1 deletion docs/includes/presentation/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ two slides denoted by the IDs 267 and 256.

Using the Open XML SDK, you can create document structure and
content using strongly-typed classes that correspond to PresentationML
elements. You can find these classes in the <a href="xref:DocumentFormat.OpenXml.Presentation?displayName=fullName" />
elements. You can find these classes in the <xref:DocumentFormat.OpenXml.Presentation>
namespace. The following table lists the class names of the classes that
correspond to the `sld`, `sldLayout`, `sldMaster`, and `notesMaster` elements.

Expand Down
2 changes: 1 addition & 1 deletion docs/includes/word/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The basic document structure of a `WordProcessingML` document consists of the `d
</w:document>
```

Using the Open XML SDK, you can create document structure and content using strongly-typed classes that correspond to `WordprocessingML` elements. You will find these classes in the <a href="xref:DocumentFormat.OpenXml.Wordprocessing?displayProperty=fullName" /> namespace. The following table lists the class names of the classes that correspond to the `document`, `body`, `p`, `r`, and `t` elements.
Using the Open XML SDK, you can create document structure and content using strongly-typed classes that correspond to `WordprocessingML` elements. You will find these classes in the <xref:DocumentFormat.OpenXml.Wordprocessing> namespace. The following table lists the class names of the classes that correspond to the `document`, `body`, `p`, `r`, and `t` elements.

| **WordprocessingML Element** | **Open XML SDK Class** | **Description** |
|---|---|---|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ slide layout, slide master, and theme parts.

Using the Open XML SDK, you can create presentation structure and
content by using strongly-typed classes that correspond to
PresentationML elements. You can find these classes in the <a href="xref:DocumentFormat.OpenXml.Presentation?displayName=fullName" />
PresentationML elements. You can find these classes in the <xref:DocumentFormat.OpenXml.Presentation>
namespace. The following table lists the names of the classes that
correspond to the presentation, slide, slide master, slide layout, and
theme elements. The class that corresponds to the theme element is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ A PresentationML document is not stored as one large body in a single part. Inst

## Important Presentation Parts

Using the Open XML SDK, you can create document structure and content that uses strongly-typed classes that correspond to PresentationML elements. You can find these classes in the <a href="xref:DocumentFormat.OpenXml.Presentation?displayName=fullName" /> namespace. The following table lists the class names of the classes that correspond to some of the important presentation elements.
Using the Open XML SDK, you can create document structure and content that uses strongly-typed classes that correspond to PresentationML elements. You can find these classes in the <xref:DocumentFormat.OpenXml.Presentation> namespace. The following table lists the class names of the classes that correspond to some of the important presentation elements.

| **Package Part** | **Top Level PresentationML Element** | **Open XML SDK Class** | **Description**\* |
|-------------------------|--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/presentation/working-with-handout-master-slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ turn, creates additional class instances: an instance of the <xref:DocumentForma
instance of the <xref:DocumentFormat.OpenXml.Presentation.GroupShapeProperties> class, and an instance
of the <xref:DocumentFormat.OpenXml.Presentation.Shape> class.

The namespace represented by the letter `P` in the code is the <a href="xref:DocumentFormat.OpenXml.Presentation?displayName=fullName" />
The namespace represented by the letter `P` in the code is the <xref:DocumentFormat.OpenXml.Presentation>
namespace.

### [C#](#tab/cs)
Expand Down
2 changes: 1 addition & 1 deletion docs/presentation/working-with-notes-slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ the `CommonSlideData` class.
--------------------------------------------------------------------------------
## Open XML SDK Code Example

> In the following code snippets `P` represents the <a href="xref:DocumentFormat.OpenXml.Presentation?displayProperty=fullName"/> namespace and `D` represents the <a href="xref:DocumentFormat.OpenXml.Drawing?displayProperty=fullName"/> namespace.
> In the following code snippets `P` represents the <xref:DocumentFormat.OpenXml.Presentation> namespace and `D` represents the <ref:DocumentFormat.OpenXml.Drawing> namespace.

In the snippet below, a presentation is opened with `Presentation.Open` and the first <xref:DocumentFormat.OpenXml.Packaging.SlidePart>
is retrieved or added if the presentation does not already have a `SlidePart`.
Expand Down
14 changes: 7 additions & 7 deletions docs/presentation/working-with-presentation-slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ In the above example the order specified to present the slides is slide
4, then 3, 2, and finally 5.


© [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]
&copy; [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]

The `<sld/>` element is the root element of the PresentationML Slide
part. For more information about the overall structure of the parts and
Expand Down Expand Up @@ -93,7 +93,7 @@ by the master is used. If the `<overrideClrMapping/>` child element is
present, it defines a new color scheme specific to the parent notes
slide, presentation slide, or slide layout.

© [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]
&copy; [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]

### CommonSlideData Class

Expand All @@ -112,7 +112,7 @@ The actual data in `<cSld/>` describe only the particular parent slide;
it is only the type of information stored that is common across all
slides.

© [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]
&copy; [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]

### ExtensionListWithModification Class

Expand All @@ -131,7 +131,7 @@ framework.
[Note: Using this `extLst` element allows the generating application to
store whether this extension property has been modified. end note]

© [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]
&copy; [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]

### Timing Class

Expand All @@ -146,7 +146,7 @@ More information on the specifics of these time nodes and how they are
to be defined can be found within the Animation section of the
PresentationML framework.

© [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]
&copy; [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]

### Transition Class

Expand All @@ -159,7 +159,7 @@ to transition to the current slide from the previous slide. That is, the
transition information is stored on the slide that appears after the
transition is complete.

© [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]
&copy; [!include[ISO/IEC 29500 version](../includes/iso-iec-29500-version.md)]


--------------------------------------------------------------------------------
Expand Down Expand Up @@ -195,7 +195,7 @@ All of these class instances and instances of the classes that represent
the child elements of the `<sld/>` element are required to create the
minimum number of XML elements necessary to represent a new slide.

The namespace represented by the letter *P* in the code is the <a href="xref:DocumentFormat.OpenXml.Presentation?displayName=fullName" />
The namespace represented by the letter *P* in the code is the <xref:DocumentFormat.OpenXml.Presentation>
namespace.

### [C#](#tab/cs-0)
Expand Down
2 changes: 1 addition & 1 deletion docs/presentation/working-with-slide-layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ the `CommonSlideData` class, the `ColorMapOverride` class, the <xref:DocumentFor

The following method from the article [How to: Create a presentation document by providing a file name](how-to-create-a-presentation-document-by-providing-a-file-name.md) adds a new slide layout part to an existing presentation and creates an instance of an Open XML SDK `SlideLayout` class in the new slide layout part. The `SlideLayout` class constructor creates instances of the `CommonSlideData` class and the `ColorMapOverride` class. The `CommonSlideData` class constructor creates an instance of the <xref:DocumentFormat.OpenXml.Presentation.ShapeTree> class, whose constructor in turn creates additional class instances: an instance of the <xref:DocumentFormat.OpenXml.Presentation.NonVisualGroupShapeProperties> class, an instance of the <xref:DocumentFormat.OpenXml.Presentation.GroupShapeProperties> class, and an instance of the <xref:DocumentFormat.OpenXml.Presentation.Shape> class.

The namespace represented by the letter *P* in the code is the <a href="xref:DocumentFormat.OpenXml.Presentation?displayName=fullName" /> namespace.
The namespace represented by the letter *P* in the code is the <xref:DocumentFormat.OpenXml.Presentation> namespace.

### [C#](#tab/cs)
[!code-csharp[](../../samples/presentation/create_by_providing_a_file_name/cs/Program.cs#snippet100)]
Expand Down
2 changes: 1 addition & 1 deletion docs/presentation/working-with-slide-masters.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ element. Among these classes, as shown in the following code sample, are the `Co

The following method from the article [How to: Create a presentation document by providing a file name](./how-to-create-a-presentation-document-by-providing-a-file-name.md) adds a new slidemaster part to an existing presentation and creates an instance of an Open XML SDK `SlideMaster` class in the new slide master part. The `SlideMaster` class constructor creates instances of the `CommonSlideData` class and the `ColorMap`, `SlideLayoutIdList`, and `TextStyles` classes. The `CommonSlideData` class constructor creates an instance of the <xref:DocumentFormat.OpenXml.Presentation.ShapeTree> class, whose constructor in turn creates additional class instances: an instance of the <xref:DocumentFormat.OpenXml.Presentation.NonVisualGroupShapeProperties> class, an instance of the <xref:DocumentFormat.OpenXml.Presentation.GroupShapeProperties> class, and an instance of the <xref:DocumentFormat.OpenXml.Presentation.Shape> class, among others.

The namespace represented by the letter *P* in the code is the <a href="xref:DocumentFormat.OpenXml.Presentation?displayName=fullName" /> namespace.
The namespace represented by the letter *P* in the code is the <xref:DocumentFormat.OpenXml.Presentation> namespace.

### [C#](#tab/cs)
[!code-csharp[](../../samples/presentation/create_by_providing_a_file_name/cs/Program.cs#snippet99)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ You can use the `GetHiddenRowsOrCols` method to retrieve a list of the hidden ro

## How the Code Works

The code opens the document, by using the <a href="xref:DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.Open*?displayProperty=nameWithType"/> method and indicating that the document should be open for read-only access (the final `false` parameter value). Next the code retrieves a reference to the workbook part, by using the <xref:DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.WorkbookPart*> property of the document.
The code opens the document, by using the <DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.Open*> method and indicating that the document should be open for read-only access (the final `false` parameter value). Next the code retrieves a reference to the workbook part, by using the <xref:DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.WorkbookPart*> property of the document.

### [C#](#tab/cs-3)
[!code-csharp[](../../samples/spreadsheet/retrieve_a_list_of_the_hidden_rows_or_columns/cs/Program.cs#snippet1)]
Expand Down