Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
PowerPoint.SlideBackgroundSolidFillOptions interface
- Package:
- powerpoint
Represents the available options for setting a PowerPoint.SlideBackground solid fill.
Remarks
Used by
Examples
// 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).");
});
Properties
| color | If provided, specifies the fill color in HTML color format (e.g., "#FFA500" or "orange"). |
| transparency | If provided, specifies the transparency percentage of the fill as a value from 0.0 (opaque) through 1.0 (clear). |
Property Details
color
If provided, specifies the fill color in HTML color format (e.g., "#FFA500" or "orange").
color?: string;
Property Value
string
Remarks
transparency
If provided, specifies the transparency percentage of the fill as a value from 0.0 (opaque) through 1.0 (clear).
transparency?: number;
Property Value
number
Remarks
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
