Skip to content

Update README.md #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 22, 2025
Merged
Changes from 6 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
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<!-- default badges list -->
![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/1023545041/25.1.4%2B)
[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T1300596)
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
[![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives)
<!-- default badges end -->


# DevExpress Presentation API Library – Get Started

This example creates a presentation with three slides and populates them with content.
Expand All @@ -19,6 +20,9 @@ This example creates a presentation with three slides and populates them with co
### Slide #3
![slide 3](media/gs-resulting-slide3.png)

> [!Important]
> The Universal Subscription or an additional Office File API Subscription is required to use this example in production code. For pricing information, please refer to the [DevExpress Subscription](https://www.devexpress.com/Subscriptions/) page.

## Implementation Details

* Use the `Presentation()` parameterless constructor to create a new presentation.
Expand All @@ -32,15 +36,15 @@ This example creates a presentation with three slides and populates them with co
SlideMaster slideMaster = presentation.SlideMasters[0];
```

* To create a slide, initialize `Slide` objects and add them to the `Presentation.Slides` collection. For each slide, specify the layout type in the `Slide` constructor parameters. In this example, slides get a predefined layout from a slide master. To obtain a layout from the `SlideMaster.Layouts`, you can call `Get` or `GetOrCreate` method.
* To create a slide, initialize `Slide` objects and add them to the `Presentation.Slides` collection. For each slide, specify the layout type in the `Slide` constructor parameters. In this example, slides get a predefined layout from a slide master. To obtain a layout from the `SlideMaster.Layouts`, you can call the `Get` or `GetOrCreate` method.

```cs
Slide slide1 = new Slide(slideMaster.Layouts.Get(SlideLayoutType.Title));
//...
presentation.Slides.Add(slide1);
```

* Layouts adds placeholder shapes to slides. You can access placeholder shapes in `Slide.Shapes` collection to add desired content.
* Layouts add placeholder shapes to slides. You can access placeholder shapes in the `Slide.Shapes` collection to add the desired content.

```cs
Slide slide1 = new Slide(slideMaster.Layouts.Get(SlideLayoutType.Title));
Expand Down Expand Up @@ -73,7 +77,7 @@ This example creates a presentation with three slides and populates them with co

## Documentation

- [Create Your First Presentation with DevExpress Presentation API Library](https://docs.devexpress.devx/OfficeFileAPI/405404/presentation-api/create-first-presentation)
- [Create Your First Presentation with DevExpress Presentation API Library](https://docs.devexpress.com/OfficeFileAPI/405404/presentation-api/create-first-presentation)

## More Examples

Expand Down