Partage via


PowerPoint.SlideBackgroundGradientFillOptions interface

Représente les options disponibles pour définir un remplissage dégradé PowerPoint.SlideBackground .

Remarques

[ Ensemble d’API : PowerPointApi 1.10 ]

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.");
});

Propriétés

type

S’il est fourni, spécifie le type de remplissage dégradé.

Détails de la propriété

type

S’il est fourni, spécifie le type de remplissage dégradé.

type?: PowerPoint.SlideBackgroundGradientFillType | "Unsupported" | "Linear" | "Radial" | "Rectangular" | "Path" | "ShadeFromTitle";

Valeur de propriété

PowerPoint.SlideBackgroundGradientFillType | "Unsupported" | "Linear" | "Radial" | "Rectangular" | "Path" | "ShadeFromTitle"

Remarques

[ Ensemble d’API : PowerPointApi 1.10 ]