Skip to content

Commit 90964d6

Browse files
[PowerPoint] Refresh flagged articles (#5464)
1 parent c60709b commit 90964d6

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

docs/powerpoint/insert-slides-into-presentation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Insert slides in a PowerPoint presentation
2+
title: Insert slides from another PowerPoint presentation
33
description: Learn how to insert slides from one presentation into another.
4-
ms.date: 03/07/2021
4+
ms.date: 11/07/2025
55
ms.localizationpriority: medium
66
---
77

8-
# Insert slides in a PowerPoint presentation
8+
# Insert slides from another PowerPoint presentation
99

1010
A PowerPoint add-in can insert slides from one presentation into the current presentation by using PowerPoint's application-specific JavaScript library. You can control whether the inserted slides keep the formatting of the source presentation or the formatting of the target presentation.
1111

@@ -38,13 +38,13 @@ There are many ways to convert a file to Base64. Which programming language and
3838
> [!NOTE]
3939
> There are many other ways to get a PowerPoint file. For example, if the file is stored on OneDrive or SharePoint, you can use Microsoft Graph to download it. For more information, see [Working with files in Microsoft Graph](/graph/api/resources/onedrive) and [Access Files with Microsoft Graph](/training/modules/msgraph-access-file-data/).
4040

41-
2. Add the following code to the add-in's JavaScript to assign a function to the input control's `change` event. (You create the `storeFileAsBase64` function in the next step.)
41+
1. Add the following code to the add-in's JavaScript to assign a function to the input control's `change` event. (You create the `storeFileAsBase64` function in the next step.)
4242

4343
```javascript
4444
$("#file").on("change", storeFileAsBase64);
4545
```
4646

47-
3. Add the following code. Note the following about this code.
47+
1. Add the following code. Note the following about this code.
4848

4949
- The `reader.readAsDataURL` method converts the file to Base64 and stores it in the `reader.result` property. When the method completes, it triggers the `onload` event handler.
5050
- The `onload` event handler trims metadata off of the encoded file and stores the encoded string in a global variable.
@@ -165,6 +165,6 @@ async function insertAfterSelectedSlide() {
165165
> [!NOTE]
166166
> The slides will be inserted in the same relative order in which they appear in the source presentation, regardless of the order in which they appear in the array.
167167
168-
There is no practical way that users can discover the ID or creation ID of a slide in the source presentation. For this reason, you can really only use the `sourceSlideIds` property when either you know the source IDs at coding time or your add-in can retrieve them at runtime from some data source. Because users cannot be expected to memorize slide IDs, you also need a way to enable the user to select slides, perhaps by title or by an image, and then correlate each title or image with the slide's ID.
168+
There's no practical way that users can discover the ID or creation ID of a slide in the source presentation. For this reason, you can really only use the `sourceSlideIds` property when either you know the source IDs at coding time or your add-in can retrieve them at runtime from some data source. Because users cannot be expected to memorize slide IDs, you also need a way to enable the user to select slides, perhaps by title or by an image, and then correlate each title or image with the slide's ID.
169169
170170
Accordingly, the `sourceSlideIds` property is primarily used in presentation template scenarios: The add-in is designed to work with a specific set of presentations that serve as pools of slides that can be inserted. In such a scenario, either you or the customer must create and maintain a data source that correlates a selection criterion (such as titles or images) with slide IDs or slide creation IDs that has been constructed from the set of possible source presentations.

docs/powerpoint/use-document-themes-in-your-powerpoint-add-ins.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
2-
title: Use document themes in your PowerPoint add-ins
2+
title: Use Office document themes in your PowerPoint add-ins
33
description: Learn how to visually coordinate themes, such as fonts and colors, to apply to PowerPoint presentations.
4-
ms.date: 06/18/2024
4+
ms.date: 11/07/2025
55
ms.localizationpriority: medium
66
---
77

8-
# Use document themes in your PowerPoint add-ins
8+
# Use Office document themes in your PowerPoint add-ins
99

1010
An [Office theme](https://support.microsoft.com/office/83e68627-2c17-454a-9fd8-62deb81951a6) consists, in part, of a visually coordinated set of fonts and colors that you can apply to presentations, documents, worksheets, and emails. To apply or customize the theme of a presentation in PowerPoint, you use the **Themes** and **Variants** groups on **Design** tab of the ribbon. PowerPoint assigns a new blank presentation with the default **Office Theme**, but you can choose other themes available on the **Design** tab, download additional themes from Office.com, or create and customize your own theme.
1111

1212
Using **OfficeThemes.css**, design add-ins that are coordinated with PowerPoint in two ways.
1313

14-
- **In content add-ins for PowerPoint**. Use the document theme classes of **OfficeThemes.css** to specify fonts and colors that match the theme of the presentation your content add-in is inserted into - and those fonts and colors will dynamically update if a user changes or customizes the presentation's theme.
14+
- **In content add-ins for PowerPoint**. Use the document theme classes of **OfficeThemes.css** to specify fonts and colors that match the theme of the presentation your content add-in is inserted into. Those fonts and colors will dynamically update if a user changes or customizes the presentation's theme.
1515

16-
- **In task pane add-ins for PowerPoint**. Use the Office UI theme classes of **OfficeThemes.css** to specify the same fonts and background colors used in the UI so that your task pane add-ins will match the colors of built-in task panes - and those colors will dynamically update if a user changes the Office UI theme.
16+
- **In task pane add-ins for PowerPoint**. Use the Office UI theme classes of **OfficeThemes.css** to specify the same fonts and background colors used in the UI so that your task pane add-ins will match the colors of built-in task panes. Those colors will dynamically update if a user changes the Office UI theme.
1717

1818
## Document theme colors
1919

2020
Every Office document theme defines 12 colors. Ten of these colors are available when you set font, background, and other color settings in a presentation with the color picker.
2121

2222
![Color palette.](../images/office15-app-color-palette.png)
2323

24-
To view or customize the full set of 12 theme colors in PowerPoint, in the **Variants** group on the **Design** tab, click the **More** drop-down - then select **Colors** > **Customize Colors** to display the **Create New Theme Colors** dialog box.
24+
To view or customize the full set of 12 theme colors in PowerPoint, in the **Variants** group on the **Design** tab, click the **More** dropdown list then select **Colors** > **Customize Colors** to display the **Create New Theme Colors** dialog box.
2525

2626
![Create new theme colors dialog box.](../images/office15-app-create-new-theme-colors.png)
2727

@@ -33,15 +33,15 @@ Every Office document theme also defines two fonts -- one for headings and one f
3333

3434
![The font picker.](../images/office15-app-font-picker.png)
3535

36-
To view or customize theme fonts in PowerPoint, in the **Variants** group on the **Design** tab, click the **More** drop-down - then select **Fonts** > **Customize Fonts** to display the **Create New Theme Fonts** dialog box.
36+
To view or customize theme fonts in PowerPoint, in the **Variants** group on the **Design** tab, click the **More** dropdown list then select **Fonts** > **Customize Fonts** to display the **Create New Theme Fonts** dialog box.
3737

3838
![Create new theme fonts dialog box.](../images/office15-app-create-new-theme-fonts.png)
3939

4040
### Office UI theme fonts and colors
4141

42-
Office also lets you choose between several predefined themes that specify some of the colors and fonts used in the UI of all Office applications. To do that, you use the **File** > **Account** > **Office Theme** drop-down (from any Office application).
42+
Office also lets you choose between several predefined themes that specify some of the colors and fonts used in the UI of all Office applications. To do that, you use the **File** > **Account** > **Office Theme** dropdown list (from any Office application).
4343

44-
![Office theme drop-down.](../images/office15-app-office-theme-picker.png)
44+
![Office theme dropdown list.](../images/office15-app-office-theme-picker.png)
4545

4646
**OfficeThemes.css** includes classes that you can use in your task pane add-ins for PowerPoint so they will use these same fonts and colors. This lets you design your task pane add-ins that match the appearance of built-in task panes.
4747

@@ -54,7 +54,7 @@ Using the **OfficeThemes.css** file with your content add-ins for PowerPoint let
5454
Use the following steps to add and reference the **OfficeThemes.css** file to your add-in project.
5555

5656
> [!NOTE]
57-
> The steps in this procedure only apply to Visual Studio 2015. If you are using Visual Studio 2019, the **OfficeThemes.css** file is created automatically for any new PowerPoint add-in projects that you create.
57+
> The steps in this procedure only apply to Visual Studio 2015. If you're using Visual Studio 2019, the **OfficeThemes.css** file is created automatically for any new PowerPoint add-in projects that you create.
5858
5959
1. In **Solution Explorer**, right-click (or select and hold) the **Content** folder in the _**project_name**_**Web** project, choose **Add**, and then select **Style Sheet**.
6060

@@ -123,7 +123,7 @@ Use the following steps to add and reference the **OfficeThemes.css** file to yo
123123
.office-officeTheme-secondary-bgColor { background-color:#ffffff; }
124124
```
125125

126-
1. If you are using a tool other than Visual Studio to create your add-in, copy the CSS code from the previous step into a text file. Then, save the file as **OfficeThemes.css**.
126+
1. If you're using a tool other than Visual Studio to create your add-in, copy the CSS code from the previous step into a text file. Then, save the file as **OfficeThemes.css**.
127127

128128
## Reference OfficeThemes.css in your add-in's HTML pages
129129

@@ -133,7 +133,7 @@ To use the **OfficeThemes.css** file in your add-in project, add a `<link>` tag
133133
<link href="<local_path_to_OfficeThemes.css>" rel="stylesheet" type="text/css" />
134134
```
135135

136-
To do this in Visual Studio, follow these steps.
136+
To do this in Visual Studio, follow these steps:
137137

138138
1. Choose **Create a new project**.
139139

@@ -151,7 +151,7 @@ To do this in Visual Studio, follow these steps.
151151
<link href="../../Content/OfficeThemes.css" rel="stylesheet" type="text/css" />
152152
```
153153

154-
If you are creating your add-in with a tool other than Visual Studio, add a `<link>` tag with the same format specifying a relative path to the copy of **OfficeThemes.css** that will be deployed with your add-in.
154+
If you're creating your add-in with a tool other than Visual Studio, add a `<link>` tag with the same format specifying a relative path to the copy of **OfficeThemes.css** that will be deployed with your add-in.
155155

156156
### Use OfficeThemes.css document theme classes in your content add-in's HTML page
157157

@@ -182,7 +182,7 @@ If you change the presentation to use another theme or customize the presentatio
182182

183183
### Use OfficeThemes.css Office UI theme classes in your task pane add-in's HTML page
184184

185-
In addition to the document theme, users can customize the color scheme of the Office user interface for all Office applications using the **File** > **Account** > **Office Theme** drop-down box.
185+
In addition to the document theme, users can customize the color scheme of the Office user interface for all Office applications using the **File** > **Account** > **Office Theme** dropdown box.
186186

187187
The following shows a simple example of HTML in a task pane add-in that uses OfficeTheme.css classes to specify font color and background color. For details about the **OfficeThemes.css** classes that correspond to fonts and colors of the Office UI theme, see [Theme classes for task pane add-ins](#theme-classes-for-task-pane-add-ins).
188188

docs/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@
961961
- name: Add and delete slides
962962
href: powerpoint/add-slides.md
963963
displayName: PowerPoint
964-
- name: Insert slides
964+
- name: Insert slides from another presentation
965965
href: powerpoint/insert-slides-into-presentation.md
966966
displayName: PowerPoint
967967
- name: Get the whole document from an add-in
@@ -970,7 +970,7 @@
970970
- name: Use custom tags on presentations, slides, and shapes
971971
href: powerpoint/tagging-presentations-slides-shapes.md
972972
displayName: PowerPoint
973-
- name: Use document themes in your PowerPoint add-ins
973+
- name: Use Office document themes
974974
href: powerpoint/use-document-themes-in-your-powerpoint-add-ins.md
975975
displayName: PowerPoint
976976
- name: Work with shapes

0 commit comments

Comments
 (0)