PowerPoint.SlideBackgroundGradientFillType enum
PowerPoint.SlideBackgroundGradientFill のグラデーション塗りつぶしの種類を指定します。
注釈
[ API set: PowerPointApi 1.10 ]
例
// 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.");
});
フィールド
| linear = "Linear" | 線形グラデーション塗りつぶし。 |
| path = "Path" | パス グラデーションの塗りつぶし。 |
| radial = "Radial" | 放射状グラデーションの塗りつぶし。 |
| rectangular = "Rectangular" | 四角形のグラデーション塗りつぶし。 |
| shadeFromTitle = "ShadeFromTitle" | タイトルグラデーション塗りつぶしの網掛け。 |
| unsupported = "Unsupported" | サポートされていないグラデーション塗りつぶし。 |