PowerPoint.AddSlideOptions interface

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Represents the available options when adding a new slide.

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

Properties

layoutId

Specifies the ID of a Slide Layout to be used for the new slide. If no layoutId is provided, but a slideMasterId is provided, then the ID of the first layout from the specified Slide Master will be used. If no slideMasterId is provided, but a layoutId is provided, then the specified layout needs to be available for the default Slide Master (as specified in the slideMasterId description). Otherwise, an error will be thrown.

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

slideMasterId

Specifies the ID of a Slide Master to be used for the new slide. If no slideMasterId is provided, then the previous slide's Slide Master will be used. If there is no previous slide, then the presentation's first Slide Master will be used.

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

Property Details

layoutId

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies the ID of a Slide Layout to be used for the new slide. If no layoutId is provided, but a slideMasterId is provided, then the ID of the first layout from the specified Slide Master will be used. If no slideMasterId is provided, but a layoutId is provided, then the specified layout needs to be available for the default Slide Master (as specified in the slideMasterId description). Otherwise, an error will be thrown.

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

layoutId?: string;

Property Value

string

slideMasterId

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies the ID of a Slide Master to be used for the new slide. If no slideMasterId is provided, then the previous slide's Slide Master will be used. If there is no previous slide, then the presentation's first Slide Master will be used.

[ API set: PowerPointApi BETA (PREVIEW ONLY) ]

slideMasterId?: string;

Property Value

string