PowerPoint.SlideBackgroundGradientFillType enum
Spécifie le type de remplissage dégradé pour PowerPoint.SlideBackgroundGradientFill.
Remarques
Jeu d’API : PowerPointApi 1.10
Utilisateur
Exemples
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/powerpoint/slide-management/get-set-background-fill.yaml
// Sets the background of the first selected slide to a linear gradient fill.
await PowerPoint.run(async (context) => {
const slide: PowerPoint.Slide = context.presentation.getSelectedSlides().getItemAt(0);
slide.background.fill.setGradientFill({
type: PowerPoint.SlideBackgroundGradientFillType.linear,
} as PowerPoint.SlideBackgroundGradientFillOptions);
await context.sync();
console.log("Background set to linear gradient fill.");
});
Champs
| linear = "Linear" | Remplissage linéaire en dégradé. |
| path = "Path" | Remplissage de dégradé de chemin. |
| radial = "Radial" | Remplissage dégradé radial. |
| rectangular = "Rectangular" | Remplissage rectangulaire dégradé. |
| shadeFromTitle = "ShadeFromTitle" | Ombrage du remplissage dégradé du titre. |
| unsupported = "Unsupported" | Remplissage dégradé non pris en charge. |