FollowMasterBackground
Sets the master background as the background of the slide.
Syntax
expression.FollowMasterBackground();
expression
- A variable that represents a ApiSlide class.
Parameters
This method doesn't have any parameters.
Returns
boolean
Example
This example sets the master background as the background of the slide.
- Code
- Result
// How to set a slide's background same as the master's.
// Get a slide by its index and set its background as its master.
const presentation = Api.GetPresentation();
const slide = presentation.GetSlideByIndex(0);
const master = presentation.GetMaster(0);
const layout = master.GetLayout(0);
const fill = Api.CreateSolidFill(Api.CreateRGBColor(255, 111, 61));
layout.SetBackground(fill);
slide.FollowMasterBackground();