PowerPoint.SlideBackgroundPictureOrTextureFillOptions interface
PowerPoint.SlideBackground 画像またはテクスチャ塗りつぶしオプションを表します。
注釈
[ 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 picture fill at 60% transparency.
// Uses a sample image from a Base64-encoded string.
await PowerPoint.run(async (context) => {
const slide: PowerPoint.Slide = context.presentation.getSelectedSlides().getItemAt(0);
slide.background.fill.setPictureOrTextureFill({
imageBase64: getSampleImageAsBase64String(),
transparency: 0.6,
} as PowerPoint.SlideBackgroundPictureOrTextureFillOptions);
await context.sync();
console.log("Background set to picture fill (60% transparent).");
});
プロパティ
| image |
指定した場合は、塗りつぶしの Base64 でエンコードされたイメージ データを指定します。 |
| transparency | 指定した場合は、塗りつぶしの透明度の割合を 0.0 (不透明) から 1.0 (クリア) までの値として指定します。 |
プロパティの詳細
imageBase64
指定した場合は、塗りつぶしの Base64 でエンコードされたイメージ データを指定します。
imageBase64?: string;
プロパティ値
string
注釈
transparency
指定した場合は、塗りつぶしの透明度の割合を 0.0 (不透明) から 1.0 (クリア) までの値として指定します。
transparency: number;
プロパティ値
number