PowerPoint.SlideBackgroundSolidFillOptions interface
塗りつぶし PowerPoint.SlideBackground を単色に設定するために使用できるオプションを表します。
注釈
使用元
例
// 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 solid orange fill at 20% transparency.
await PowerPoint.run(async (context) => {
const slide: PowerPoint.Slide = context.presentation.getSelectedSlides().getItemAt(0);
slide.background.fill.setSolidFill({
color: "#FF8C00",
transparency: 0.2,
} as PowerPoint.SlideBackgroundSolidFillOptions);
await context.sync();
console.log("Background set to solid orange fill (20% transparent).");
});
プロパティ
| color | 指定した場合は、HTML の色形式で塗りつぶしの色を指定します (例: "#FFA500" または "オレンジ")。 |
| transparency | 指定した場合は、塗りつぶしの透明度の割合を、0.0 (不透明) から 1.0 (クリア) までの値で指定します。 |
プロパティの詳細
color
指定した場合は、HTML の色形式で塗りつぶしの色を指定します (例: "#FFA500" または "オレンジ")。
color?: string;
プロパティ値
string
注釈
transparency
指定した場合は、塗りつぶしの透明度の割合を、0.0 (不透明) から 1.0 (クリア) までの値で指定します。
transparency?: number;
プロパティ値
number