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.Slide class

Package: mlreportgen.ppt
Superclasses:

Presentation slide

Description

Presentation slide. To add a slide, use the mlreportgen.ppt.Presentation.add method, specifying an output argument. You can then use mlreportgen.ppt.Slide methods on that slide object.

Properties

expand all

This read-only property is the slide layout, specified as a character vector.

This read-only property is the slide master, specified as a character vector.

This read-only property is the slide name, specified as a character vector.

This read-only property is the slide formatting, represented as a cell array of PPT style objects.

This read-only property lists child elements that the object contains, specified as a cell array.

This read-only property lists the parent of this object, specified a PPT object.

This read-only property identifies the slide. The generated tag has the form CLASS:ID, where CLASS is the object class and ID is the value of the Id property of the object.

This read-only property is the session-unique ID generated as part of object creation.

Methods

Method

Purpose

find

Search a slide.

add

Add content to slide.

replace

Replace slide content.

Examples

expand all

Create a presentation.

import mlreportgen.ppt.*

slides = Presentation('mySlideAddPresentation.pptx');
slide1 = add(slides,'Title and Picture');

Create an mlreportgen.ppt.Picture object.

plane = Picture(which('b747.jpg'));
plane.X = '4in';
plane.Y = '4in';
plane.Width = '5in';
plane.Height = '2in';

Add the plane picture to slide1.

add(slide1,plane);

Close the presentation.

close(slides);

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

if ispc
    winopen(slidesFile);
end

Was this topic helpful?