This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Package: mlreportgen.ppt

Get names of slide masters for presentation


masters = getMasterNames(presentation)



masters = getMasterNames(presentation) gets the names of slide masters for a presentation.


collapse all

Create a presentation.

import mlreportgen.ppt.*
slides = Presentation('myGetMastersPresentation');

Get the names of master slides in the presentation. The default PPT API template has just one slide master.

masters = getMastersNames(slides);
ans = 

    'Office Theme'

Input Arguments

collapse all

Presentation to get slide master names for, specified as an mlreportgen.ppt.Presentation object.

Output Arguments

collapse all

Slide masters in presentation, returned as a cell array of character vectors.

Introduced in R2015b