PowerPoint.InsertSlideFormatting enum
Spécifie les options de mise en forme pour l’insertion des diapositives.
Remarques
[ Ensemble d’API : PowerPointApi 1.2 ]
Exemples
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/powerpoint/slide-management/insert-slides.yaml
await PowerPoint.run(async function(context) {
// Get the ID of the first selected slide.
const presentation: PowerPoint.Presentation = context.presentation;
const selected: PowerPoint.Slide = presentation.getSelectedSlides().getItemAt(0);
selected.load("id");
await context.sync();
// Insert the other presentation after the selected slide.
const insertOptions: PowerPoint.InsertSlideOptions = {
formatting: PowerPoint.InsertSlideFormatting.useDestinationTheme,
targetSlideId: selected.id
};
presentation.insertSlidesFromBase64(chosenFileBase64, insertOptions);
await context.sync();
});
Champs
| keepSourceFormatting = "KeepSourceFormatting" | Copiez le thème source dans la présentation cible et utilisez ce thème. |
| useDestinationTheme = "UseDestinationTheme" | Utilisez le thème existant dans la présentation cible. |