Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mlreportgen.ppt.Presentation.getLayoutNames

Package: mlreportgen.ppt

Get names of layouts for presentation slide master

Syntax

layoutNames = getLayoutNames(presentation,slideMaster)

Description

example

layoutNames = getLayoutNames(presentation,slideMaster) gets the names of layouts for a presentation slide master.

Examples

collapse all

Create a presentation.

import mlreportgen.ppt.*
slidesFile = 'layouts.pptx';
slides = Presentation(slidesFile);

Get the names of the slide masters in the presentation.

masters = getMasterNames(slides);

Get the names of layouts in the first slide master.

layouts = getLayoutNames(slides,masters{1});
layouts
Columns 1 through 5

  'Title Slide' 'Title and Vertica…'  'Vertical Title an…'  'Title and Table'  'Title and Picture'

 Columns 6 through 11

  'Title and Content'  'Section Header'  'Two Content'  'Comparison'  'Title Only'  'Blank'

 Columns 12 through 13

  'Content with Capt…'  'Picture with Capt…'

Generate the presentation. Open layouts.pptx. On a Windows® platform, you can open the presentation in MATLAB®:

close('slides')

if ispc
    winopen(slidesFile);
end

Input Arguments

collapse all

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

Slide master to get layout names for, specified as a character vector.

Output Arguments

collapse all

Slide layout names in the PowerPoint® template, returned as a cell array of character vectors.

Introduced in R2015b

Was this topic helpful?