PowerPoint.SlideBackgroundGradientFillType enum
PowerPoint.SlideBackgroundGradientFill のグラデーション塗りつぶしの種類を指定します。
注釈
使用元
例
// 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" | サポートされていないグラデーションの塗りつぶし。 |